Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-36946 theme Use server default theme before standard

  • Loading branch information...
commit 2211f504224b2ae02f123da5622cbd9b9723b9c0 1 parent 020e338
@micaherne micaherne authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/outputlib.php
View
3  lib/outputlib.php
@@ -364,6 +364,9 @@ public static function load($themename) {
} else if ($themename == theme_config::DEFAULT_THEME) {
throw new coding_exception('Default theme '.theme_config::DEFAULT_THEME.' not available or broken!');
+ } else if ($config = theme_config::find_theme_config($CFG->theme, $settings)) {
+ return new theme_config($config);
+
} else {
// bad luck, the requested theme has some problems - admin see details in theme config
return new theme_config(theme_config::find_theme_config(theme_config::DEFAULT_THEME, $settings));
Please sign in to comment.
Something went wrong with that request. Please try again.