Commit 8ea6b177 authored by Nigel McNie's avatar Nigel McNie
Browse files

get_themes() now looks for themeconfig.php and reads displayname.

parent 56c5b53c
......@@ -498,12 +498,10 @@ function get_themes() {
}
while (false !== ($subdir = readdir($themedir))) {
if ($subdir != "." && $subdir != ".." && is_dir($themebase . $subdir)) {
$config_path = $themebase . $subdir . '/config.php';
$config_path = $themebase . $subdir . '/themeconfig.php';
if (is_readable($config_path)) {
require($config_path);
if (isset($theme->name)) {
$themes[$subdir] = $theme->name;
}
$themes[$subdir] = isset($theme->displayname) ? $theme->displayname : $subdir;
}
}
}
......
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