Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40f0ad2
)
MDL-46523 navigation: add body class when logged in as other role
author
Jetha Chan
<jetha@moodle.com>
Fri, 25 Jul 2014 02:57:42 +0000
(10:57 +0800)
committer
Jetha Chan
<jetha@moodle.com>
Mon, 28 Jul 2014 07:47:46 +0000
(15:47 +0800)
lib/outputrenderers.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/outputrenderers.php
b/lib/outputrenderers.php
index
82938bc
..
bbc616f
100644
(file)
--- a/
lib/outputrenderers.php
+++ b/
lib/outputrenderers.php
@@
-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);