mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Revert to standardwhite if theme is missing MDL-6257
This commit is contained in:
parent
2fca6e0b26
commit
09ad59dcb8
1 changed files with 5 additions and 0 deletions
|
@ -2509,6 +2509,11 @@ function theme_setup($theme = '', $params=NULL) {
|
||||||
$theme = current_theme();
|
$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
|
/// Load up the theme config
|
||||||
$THEME = NULL; // Just to be sure
|
$THEME = NULL; // Just to be sure
|
||||||
include($CFG->themedir. $theme .'/config.php'); // Main config for current theme
|
include($CFG->themedir. $theme .'/config.php'); // Main config for current theme
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue