diff --git a/lib/rsslib.php b/lib/rsslib.php
index 53279600579..49886a5fe2d 100644
--- a/lib/rsslib.php
+++ b/lib/rsslib.php
@@ -47,7 +47,7 @@ function cron_rss_feeds () {
global $CFG;
$status = true;
-
+
mtrace(' Generating rssfeeds...');
//Check for required functions...
@@ -97,9 +97,9 @@ function cron_rss_feeds () {
//This function saves to file the rss feed specified in the parameters
function rss_save_file ($modname, $mod, $result) {
-
+
global $CFG;
-
+
$status = true;
if (! $basedir = make_upload_directory ('rss/'. $modname)) {
@@ -207,7 +207,7 @@ function rss_standard_header($title = NULL, $link = NULL, $description = NULL) {
function rss_add_items($items) {
global $CFG;
-
+
$result = '';
if (!empty($items)) {
@@ -268,7 +268,7 @@ function rss_geterrorxmlfile() {
//XML Header
$return = rss_standard_header();
- //XML item
+ //XML item
if ($return) {
$item->title = "RSS Error";
$item->link = $CFG->wwwroot;
@@ -281,7 +281,7 @@ function rss_geterrorxmlfile() {
if ($return) {
$return .= rss_standard_footer();
}
-
+
return $return;
}
@@ -371,7 +371,7 @@ function rss_display_feeds($courseid, $userid, $rssid='', $context) {
$select = '';
$managesharedfeeds = has_capability('block/rss_client:manageanyfeeds', $context);
$manageownfeeds = has_capability('block/rss_client:manageownfeeds', $context);
-
+
if ($rssid != '') {
$select = 'id = '.$rssid.' AND ';
}
@@ -407,10 +407,10 @@ function rss_display_feeds($courseid, $userid, $rssid='', $context) {
if ( ($feed->userid == $USER->id && $manageownfeeds)
|| ($feed->shared && $managesharedfeeds) ) {
-
+
$feedicons = ''.
'
'.
-
+
''.
'
';
@@ -428,7 +428,7 @@ function rss_display_feeds($courseid, $userid, $rssid='', $context) {
'. $feed->url .'