rss MDL-24870 latest news block was supplying the wrong context ID when creating its RSS feed link

This commit is contained in:
andyjdavis
2011-02-03 15:24:27 +08:00
parent eef3578af0
commit d95a02faa9
+2 -1
View File
@@ -110,7 +110,8 @@ class block_news_items extends block_base {
} 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);
}
}