Permalink
Browse files

MDL-30541 - Blog - Fixing the context for RSS Feed headers on the sin…

…gle blog entry pages
  • Loading branch information...
1 parent acb3bf8 commit 332748dd7ed0dc21d1d9a0000935ae65b33d1df8 @jsnfwlr jsnfwlr committed Dec 9, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 blog/index.php
View
@@ -212,9 +212,13 @@
}
if ($CFG->enablerssfeeds) {
- $rsscontext = $filtertype = $thingid = null;
+ $rsscontext = null;
+ $filtertype = null;
+ $thingid = null;
list($thingid, $rsscontext, $filtertype) = blog_rss_get_params($blogheaders['filters']);
-
+ if (empty($rsscontext)) {
+ $rsscontext = get_system_context();
+ }
$rsstitle = $blogheaders['heading'];
//check we haven't started output by outputting an error message

0 comments on commit 332748d

Please sign in to comment.