diff --git a/lib/pagelib.php b/lib/pagelib.php index f01e74ceaad83..58e51a25dfe68 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -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') { @@ -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') { @@ -1328,6 +1331,7 @@ protected function resolve_theme() { return $USER->theme; } } + break; case 'site': if ($mnetpeertheme) {