Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…agelib.php
  • Loading branch information...
commit 53f2606205afc0f9683465ac694e963dc8ba5c11 1 parent eddceb6
Mary Evans lazydaisy authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 lib/pagelib.php
4 lib/pagelib.php
@@ -1304,6 +1304,7 @@ protected function resolve_theme() {
1304 1304 if (!empty($CFG->allowcoursethemes) && !empty($this->_course->theme) && $this->devicetypeinuse == 'default') {
1305 1305 return $this->_course->theme;
1306 1306 }
  1307 + break;
1307 1308
1308 1309 case 'category':
1309 1310 if (!empty($CFG->allowcategorythemes) && $this->devicetypeinuse == 'default') {
@@ -1314,11 +1315,13 @@ protected function resolve_theme() {
1314 1315 }
1315 1316 }
1316 1317 }
  1318 + break;
1317 1319
1318 1320 case 'session':
1319 1321 if (!empty($SESSION->theme)) {
1320 1322 return $SESSION->theme;
1321 1323 }
  1324 + break;
1322 1325
1323 1326 case 'user':
1324 1327 if (!empty($CFG->allowuserthemes) && !empty($USER->theme) && $this->devicetypeinuse == 'default') {
@@ -1328,6 +1331,7 @@ protected function resolve_theme() {
1328 1331 return $USER->theme;
1329 1332 }
1330 1333 }
  1334 + break;
1331 1335
1332 1336 case 'site':
1333 1337 if ($mnetpeertheme) {

0 comments on commit 53f2606

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