From 347bea106984ff912cb7c42931d7e58042c5ddba Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Thu, 2 Aug 2012 11:08:28 +0800 Subject: [PATCH] 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. --- blocks/news_items/block_news_items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/news_items/block_news_items.php b/blocks/news_items/block_news_items.php index 6fcd152ae72..24e9ca0e456 100644 --- a/blocks/news_items/block_news_items.php +++ b/blocks/news_items/block_news_items.php @@ -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; }