Skip to content

Commit

Permalink
Merge branch 'MDL-32684_M21' of git://github.com/lazydaisy/moodle int…
Browse files Browse the repository at this point in the history
…o MOODLE_21_STABLE
  • Loading branch information
danpoltawski committed May 7, 2012
2 parents 68a2b1f + 53f2606 commit 427ef2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pagelib.php
Expand Up @@ -1304,6 +1304,7 @@ protected function resolve_theme() {
if (!empty($CFG->allowcoursethemes) && !empty($this->_course->theme) && $this->devicetypeinuse == 'default') {
return $this->_course->theme;
}
break;

case 'category':
if (!empty($CFG->allowcategorythemes) && $this->devicetypeinuse == 'default') {
Expand All @@ -1314,11 +1315,13 @@ protected function resolve_theme() {
}
}
}
break;

case 'session':
if (!empty($SESSION->theme)) {
return $SESSION->theme;
}
break;

case 'user':
if (!empty($CFG->allowuserthemes) && !empty($USER->theme) && $this->devicetypeinuse == 'default') {
Expand All @@ -1328,6 +1331,7 @@ protected function resolve_theme() {
return $USER->theme;
}
}
break;

case 'site':
if ($mnetpeertheme) {
Expand Down

0 comments on commit 427ef2e

Please sign in to comment.