Skip to content
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...
1 parent 6975216 commit 709efab5273050b71ddff031977991bd44f9517f @danpoltawski danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/news_items/block_news_items.php
View
2 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.
Something went wrong with that request. Please try again.