'.
@@ -263,7 +262,7 @@ class block_rss_client extends block_base {
$this->title = $feedtitle;
}
}
-
+
// store config setting for this rssid so we do not need to read from file each time
$this->config->{'rssid'. $rssid} = addslashes($returnstring);
$this->config->{'rssid'. $rssid .'timestamp'} = $now;
@@ -271,4 +270,4 @@ class block_rss_client extends block_base {
return $returnstring;
}
}
-?>
+?>
\ No newline at end of file
diff --git a/blocks/rss_client/block_rss_client_action.php b/blocks/rss_client/block_rss_client_action.php
index 37b1653ff1b..0d68ceee269 100644
--- a/blocks/rss_client/block_rss_client_action.php
+++ b/blocks/rss_client/block_rss_client_action.php
@@ -54,7 +54,7 @@
} else {
$navigation = $straddedit;
}
-
+
print_header(get_string('feedsaddedit', 'block_rss_client'),
get_string('feedsaddedit', 'block_rss_client'),
$navigation );
@@ -84,7 +84,7 @@
if (empty($url)) {
error( 'url not defined for rss feed' );
}
-
+
// By capturing the output from fetch_rss this way
// error messages do not display and clutter up the moodle interface
// however, we do lose out on seeing helpful messages like "cache hit", etc.
@@ -95,7 +95,7 @@
$message .= ob_get_contents();
}
ob_end_clean();
-
+
$dataobject->id = $rssid;
if ($rss === false) {
$dataobject->description = '';
@@ -141,7 +141,7 @@
$message .= ob_get_contents();
}
ob_end_clean();
-
+
if ($rss === false) {
$message .= '
There was an error loading this rss feed. You may want to verify the url you have specified before using it.'; //Daryl Hawes note: localize this line
} else {
@@ -174,7 +174,7 @@
rss_print_form($act, $url, $rssid, $preferredtitle, $id);
} else if ($act == 'delfeed') {
-
+
$file = $CFG->dataroot .'/cache/rsscache/'. $rssid .'.xml';
if (file_exists($file)) {
unlink($file);
@@ -199,7 +199,7 @@
ob_start();
$rss = fetch_rss($rss_record->url);
ob_end_clean();
-
+
if (empty($rss_record->preferredtitle)) {
$feedtitle = stripslashes_safe($rss_record->preferredtitle);
} else {
@@ -242,4 +242,4 @@
}
print_footer();
-?>
+?>
\ No newline at end of file
diff --git a/blocks/rss_client/block_rss_client_error.php b/blocks/rss_client/block_rss_client_error.php
index 81be20ba958..11ef4aa9127 100644
--- a/blocks/rss_client/block_rss_client_error.php
+++ b/blocks/rss_client/block_rss_client_error.php
@@ -1,14 +1,14 @@
+print_footer();
+?>
\ No newline at end of file
diff --git a/blocks/rss_client/config_global.html b/blocks/rss_client/config_global.html
index 824192c15ba..b218e536725 100644
--- a/blocks/rss_client/config_global.html
+++ b/blocks/rss_client/config_global.html
@@ -17,6 +17,7 @@
+
block_rss_timeout:
@@ -31,6 +32,7 @@
+
block_rss_client_submitters:
@@ -56,13 +58,11 @@
-
-
-
+
\ No newline at end of file
diff --git a/blocks/rss_client/config_instance.html b/blocks/rss_client/config_instance.html
index 9372b68b9c8..f420f1744ea 100644
--- a/blocks/rss_client/config_instance.html
+++ b/blocks/rss_client/config_instance.html
@@ -1,4 +1,4 @@
-libdir .'/rsslib.php');
$id = optional_param('id', SITEID, PARAM_INT);
@@ -7,7 +7,7 @@ $id = optional_param('id', SITEID, PARAM_INT);
$page = page_create_object($this->instance->pagetype, $this->instance->pageid);
/// Print tabs at top
-$currentaction = optional_param( 'currentaction','',PARAM_ALPHA );
+$currentaction = optional_param('currentaction', '', PARAM_ALPHA);
if (empty($currentaction) || $currentaction == 'configblock') {
$currentaction = 'configblock';
} else {
@@ -38,6 +38,7 @@ if ($currentaction == 'configblock') {
?>
+