mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Stickyblocks: fool pagelib into thinking it is course-view when it needs to be, rather than admin-stickyblocks
This commit is contained in:
parent
c6abbe5e39
commit
aa898e41c1
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user