]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from MOODLE_16_STABLE:
authordefacer <defacer>
Sat, 24 Feb 2007 23:38:42 +0000 (23:38 +0000)
committerdefacer <defacer>
Sat, 24 Feb 2007 23:38:42 +0000 (23:38 +0000)
Fix for MDL-4940: Social Activities block disappears when editing course settings.

lib/pagelib.php

index 671c7579acd0231d6c5113b854268a235fd22b17..879f11b035dbaa0990e321da1d346f9c095047a0 100644 (file)
@@ -450,7 +450,8 @@ class page_course extends page_base {
         if($this->id == SITEID) {
             return parent::get_format_name();
         }
-        return $this->body_id.'-'.$this->courserecord->format;
+        // This needs to reflect the path hierarchy under Moodle root.
+        return 'course-view-'.$this->courserecord->format;
     }
 
     // This should return a fully qualified path to the URL which is responsible for displaying us.