From e56a129d5691690032e01e0fc5d88dacf3b75a9f Mon Sep 17 00:00:00 2001 From: defacer Date: Sat, 24 Feb 2007 23:24:43 +0000 Subject: [PATCH] Merged from MOODLE_16_STABLE: Fix for MDL-4940: Social Activities block disappears when editing course settings. --- lib/pagelib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pagelib.php b/lib/pagelib.php index c98efc46e06..bc50adc835b 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -428,7 +428,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.