mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-46523-master' of git://github.com/jethac/moodle
This commit is contained in:
commit
68373c7821
1 changed files with 4 additions and 0 deletions
|
@ -827,6 +827,10 @@ class core_renderer extends renderer_base {
|
||||||
$this->page->add_body_class('userloggedinas');
|
$this->page->add_body_class('userloggedinas');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_role_switched($this->page->course->id)) {
|
||||||
|
$this->page->add_body_class('userswitchedrole');
|
||||||
|
}
|
||||||
|
|
||||||
// Give themes a chance to init/alter the page object.
|
// Give themes a chance to init/alter the page object.
|
||||||
$this->page->theme->init_page($this->page);
|
$this->page->theme->init_page($this->page);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue