Permalink
Browse files

MDL-32684 lib/pagelib: adds break; statements to theme order in lib/p…

…agelib.php
  • Loading branch information...
1 parent aa753ac commit c6e8b3b2353cd1d8f457beb55017cc0c6986d45d @lazydaisy lazydaisy committed May 2, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/pagelib.php
View
@@ -1479,6 +1479,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') {
@@ -1489,11 +1490,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') {
@@ -1503,6 +1506,7 @@ protected function resolve_theme() {
return $USER->theme;
}
}
+ break;
case 'site':
if ($mnetpeertheme) {

0 comments on commit c6e8b3b

Please sign in to comment.