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.
This commit is contained in:
Dan Poltawski
2012-08-02 11:11:44 +08:00
parent dd9274c4fc
commit 347bea1069
+1 -1
View File
@@ -106,7 +106,7 @@ class block_news_items extends block_base {
$tooltiptext = get_string('rsssubscriberssposts','forum');
}
if (!isloggedin()) {
$userid = 0;
$userid = $CFG->siteguest;
} else {
$userid = $USER->id;
}