get_theme_config_file
This commit is contained in:
parent
e6763be5f3
commit
6fa7fa5ae8
@ -5,12 +5,12 @@ function get_theme_config_file($theme){
|
||||
$a = get_app();
|
||||
$base_theme = $a->theme_info['extends'];
|
||||
|
||||
if (file_exists("view/theme/$theme/config.php")){
|
||||
return "view/theme/$theme/config.php";
|
||||
if (file_exists("view/theme/$theme/php/config.php")){
|
||||
return "view/theme/$theme/php/config.php";
|
||||
}
|
||||
if (file_exists("view/theme/$base_theme/config.php")){
|
||||
return "view/theme/$base_theme/config.php";
|
||||
}
|
||||
//if (file_exists("view/theme/$base_theme/php/config.php")){
|
||||
// return "view/theme/$base_theme/php/config.php";
|
||||
//}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user