Skip to content
Browse files

rss MDL-24870 latest news block was supplying the wrong context ID wh…

…en creating its RSS feed link
  • Loading branch information...
1 parent eef3578 commit d95a02faa9214c11cb0ce69fc22a8f8fc1c68565 @andyjdavis andyjdavis committed Feb 3, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 blocks/news_items/block_news_items.php
View
3 blocks/news_items/block_news_items.php
@@ -110,7 +110,8 @@ function get_content() {
} else {
$userid = $USER->id;
}
- $this->content->footer .= '<br />'.rss_get_link($this->page->context->id, $userid, 'mod_forum', $forum->id, $tooltiptext);
+
+ $this->content->footer .= '<br />'.rss_get_link($context->id, $userid, 'mod_forum', $forum->id, $tooltiptext);
}
}

0 comments on commit d95a02f

Please sign in to comment.
Something went wrong with that request. Please try again.