diff --git a/lib/rsslib.php b/lib/rsslib.php
index 8d1a8369e98..b7d68168614 100644
--- a/lib/rsslib.php
+++ b/lib/rsslib.php
@@ -333,9 +333,9 @@ define('MAGPIE_CACHE_ON', true); //might want to expose as an admin config optio
define('MAGPIE_CACHE_FRESH_ONLY', false); //should be exposed as an admin config option
define('MAGPIE_CACHE_AGE', $CFG->block_rss_timeout);
if ($CFG->debug) {
- define('MAGPIE_DEBUG', true);
+ define('MAGPIE_DEBUG', $CFG->debug); // magpie, like moodle, takes an integer debug
} else {
- define('MAGPIE_DEBUG', false);
+ define('MAGPIE_DEBUG', 0); // 0 is DEBUG off for magpie
}
// defines for config var block_rss_client_submitters
@@ -357,12 +357,12 @@ function rss_display_feeds($courseid='', $userid='', $rssid='') {
$select = '';
if (!isadmin()) {
- $userid = $USER->id;
+ $userid = $USER->id;
}
if ($userid != '' && is_numeric($userid)) {
- // if a user is specified and not an admin then only show their own feeds
- $select = 'userid='. $userid;
+ // if a user is specified and not an admin then only show their own feeds
+ $select = 'userid='. $userid;
} else if ($rssid != ''){
$select = 'id='. $rssid;
}
@@ -393,19 +393,18 @@ function rss_display_feeds($courseid='', $userid='', $rssid='') {
if ($feed->userid == $USER->id || isadmin()) {
- $feedicons = ''.
+ $feedicons = ''.
'
'.
''.
+ onclick="return confirm(\''. get_string('deletefeedconfirm', 'block_rss_client') .'\');">'.
'
';
}
else {
$feedicons = '';
}
- $feedinfo = '
| '."\n"; $returnstring .= ' |