mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-32684 lib/pagelib: adds break; statements to theme order in lib/pagelib.php
This commit is contained in:
parent
aa753ac24f
commit
c6e8b3b235
@ -1479,6 +1479,7 @@ class moodle_page {
|
||||
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 @@ class moodle_page {
|
||||
}
|
||||
}
|
||||
}
|
||||
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 @@ class moodle_page {
|
||||
return $USER->theme;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 'site':
|
||||
if ($mnetpeertheme) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user