Merge branch 'MDL-46523-master' of git://github.com/jethac/moodle

This commit is contained in:
Marina Glancy 2014-07-28 16:00:48 +08:00
commit 68373c7821

View File

@ -827,6 +827,10 @@ class core_renderer extends renderer_base {
$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.
$this->page->theme->init_page($this->page);