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 c6e8b3b2353cd1d8f457beb55017cc0c6986d45d 1 parent aa753ac
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
@@ -1479,6 +1479,7 @@ protected function resolve_theme() {
1479 1479 if (!empty($CFG->allowcoursethemes) && !empty($this->_course->theme) && $this->devicetypeinuse == 'default') {
1480 1480 return $this->_course->theme;
1481 1481 }
  1482 + break;
1482 1483
1483 1484 case 'category':
1484 1485 if (!empty($CFG->allowcategorythemes) && $this->devicetypeinuse == 'default') {
@@ -1489,11 +1490,13 @@ protected function resolve_theme() {
1489 1490 }
1490 1491 }
1491 1492 }
  1493 + break;
1492 1494
1493 1495 case 'session':
1494 1496 if (!empty($SESSION->theme)) {
1495 1497 return $SESSION->theme;
1496 1498 }
  1499 + break;
1497 1500
1498 1501 case 'user':
1499 1502 if (!empty($CFG->allowuserthemes) && !empty($USER->theme) && $this->devicetypeinuse == 'default') {
@@ -1503,6 +1506,7 @@ protected function resolve_theme() {
1503 1506 return $USER->theme;
1504 1507 }
1505 1508 }
  1509 + break;
1506 1510
1507 1511 case 'site':
1508 1512 if ($mnetpeertheme) {

0 comments on commit c6e8b3b

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