MDL-41288 Bugfix of error occuring when subwiki is not set
authorMarina Glancy <marina@moodle.com>
Tue, 10 Sep 2013 12:02:24 +0000 (22:02 +1000)
committerMarina Glancy <marina@moodle.com>
Tue, 10 Sep 2013 12:02:24 +0000 (22:02 +1000)
mod/wiki/pagelib.php

index 49d7d2e..9dff7e9 100644 (file)
@@ -132,7 +132,7 @@ abstract class page_wiki {
         $this->setup_tabs();
 
         echo $OUTPUT->header();
-        $wiki = wiki_get_wiki($this->subwiki->wikiid);
+        $wiki = $PAGE->activityrecord;
         echo $OUTPUT->heading($wiki->name);
 
         echo $this->wikioutput->wiki_info();