Skip to content
Browse files

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

…agelib.php
  • Loading branch information...
1 parent eddceb6 commit 53f2606205afc0f9683465ac694e963dc8ba5c11 @lazydaisy lazydaisy committed May 2, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/pagelib.php
View
4 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) {

0 comments on commit 53f2606

Please sign in to comment.
Something went wrong with that request. Please try again.