MDL-30541 - Blog - Fixing the context for RSS Feed headers on the single blog entry...
authorJason Fowler <phalacee@gmail.com>
Fri, 9 Dec 2011 04:01:02 +0000 (12:01 +0800)
committerJason Fowler <phalacee@gmail.com>
Wed, 21 Dec 2011 01:30:26 +0000 (09:30 +0800)
blog/index.php

index 2ba9884..e1c0c22 100644 (file)
@@ -212,9 +212,13 @@ if (empty($entryid) && empty($modid) && empty($groupid)) {
 }
 
 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