Permalink
Browse files

Merged fix for MDL-6247

  • Loading branch information...
1 parent 58d079d commit 3827e2d359a228fd29c28c676581a88a10132bf3 moodler committed Sep 14, 2006
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/weblib.php
View
@@ -2355,6 +2355,11 @@ function theme_setup($theme = '', $params=NULL) {
$theme = current_theme();
}
+/// If the theme doesn't exist for some reason then revert to standardwhite
+ if (!file_exists($CFG->themedir. $theme .'/config.php')) {
+ $CFG->theme = $theme = 'standardwhite';
+ }
+
/// Load up the theme config
$THEME = NULL; // Just to be sure
include($CFG->themedir. $theme .'/config.php'); // Main config for current theme

0 comments on commit 3827e2d

Please sign in to comment.