]> git.mjollnir.org Git - moodle.git/commitdiff
Stickyblocks: fool pagelib into thinking it is course-view when it needs to be, rathe...
authormjollnir_ <mjollnir_>
Fri, 17 Mar 2006 03:17:44 +0000 (03:17 +0000)
committermjollnir_ <mjollnir_>
Fri, 17 Mar 2006 03:17:44 +0000 (03:17 +0000)
lib/pagelib.php

index b7a69496604be8f9b7910a43fbdaa4248c0cef9b..f84beee98d96b53e3cfb1675d087a90362045af4 100644 (file)
@@ -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();
         }