From: mjollnir_ Date: Fri, 17 Mar 2006 03:17:44 +0000 (+0000) Subject: Stickyblocks: fool pagelib into thinking it is course-view when it needs to be, rathe... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aa898e41c1954dd4e208887d68da8cfb7d908811;p=moodle.git Stickyblocks: fool pagelib into thinking it is course-view when it needs to be, rather than admin-stickyblocks --- diff --git a/lib/pagelib.php b/lib/pagelib.php index b7a6949660..f84beee98d 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -427,6 +427,9 @@ class page_course extends page_base { // the format_name might be that activity's name etc. function get_format_name() { $this->init_full(); + if (defined('ADMIN_STICKYBLOCKS')) { + return PAGE_COURSE_VIEW; + } if($this->id == SITEID) { return parent::get_format_name(); }