get_theme_config_file

This commit is contained in:
Thomas Willingham 2012-08-06 19:31:37 +01:00
parent e6763be5f3
commit 6fa7fa5ae8

View File

@ -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/$base_theme/config.php")){
return "view/theme/$base_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/php/config.php")){
// return "view/theme/$base_theme/php/config.php";
//}
return null;
}