Skip to content

Commit

Permalink
Merged fix for MDL-6247
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 14, 2006
1 parent 58d079d commit 3827e2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3827e2d

Please sign in to comment.