From 3dde1fcafbfe52a6f88f2c88d7371c45e6ae7a13 Mon Sep 17 00:00:00 2001 From: Mary Evans Date: Wed, 2 May 2012 01:42:34 +0100 Subject: [PATCH] MDL-32684 lib/pagelib: adds break; statements to theme order in lib/pagelib.php --- lib/pagelib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pagelib.php b/lib/pagelib.php index aafe23a79dc..29f6c100e98 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -1306,6 +1306,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') { @@ -1316,11 +1317,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') { @@ -1330,6 +1333,7 @@ class moodle_page { return $USER->theme; } } + break; case 'site': if ($mnetpeertheme) {