Permalink
Browse files

MDL-31599 block_news - incorrect RSS feed for guest user

Was previously using the userid 0, rather than guest to use
authenticated RSS feed.

Thanks to Paul Verrall at LUNS for helping me debug this.
  • Loading branch information...
danpoltawski committed Aug 2, 2012
1 parent 6975216 commit 709efab5273050b71ddff031977991bd44f9517f
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/news_items/block_news_items.php
@@ -106,7 +106,7 @@ function get_content() {
$tooltiptext = get_string('rsssubscriberssposts','forum');
}
if (!isloggedin()) {
- $userid = 0;
+ $userid = $CFG->siteguest;
} else {
$userid = $USER->id;
}

0 comments on commit 709efab

Please sign in to comment.