Permalink
Browse files

MDL-36946 theme Use server default theme before standard

  • Loading branch information...
1 parent 020e338 commit 2211f504224b2ae02f123da5622cbd9b9723b9c0 @micaherne micaherne committed Nov 30, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/outputlib.php
View
@@ -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));

0 comments on commit 2211f50

Please sign in to comment.