Commit a6f8900f authored by Andrew Robert Nicols's avatar Andrew Robert Nicols
Browse files

Allow a theme to be completely disabled.



To use, set the $theme->disabled flag to the theme's themeconfig.php
Signed-off-by: default avatarAndrew Robert Nicols <andrew.nicols@luns.net.uk>
parent ce9a4769
......@@ -614,7 +614,9 @@ function get_all_theme_objects() {
$config_path = $themebase . $subdir . '/themeconfig.php';
if (is_readable($config_path)) {
require($config_path);
$themes[$subdir] = $theme;
if (empty($theme->disabled) || !$theme->disabled) {
$themes[$subdir] = $theme;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment