rework fallback themes, glob pattern was wrong
This commit is contained in:
parent
6e06d415bb
commit
01aa953951
4
boot.php
4
boot.php
|
@ -1392,7 +1392,7 @@ if(! function_exists('proc_run')) {
|
|||
|
||||
if(! function_exists('current_theme')) {
|
||||
function current_theme(){
|
||||
$app_base_themes = array('duepuntozero', 'loozah');
|
||||
$app_base_themes = array('duepuntozero', 'dispy', 'quattro');
|
||||
|
||||
$a = get_app();
|
||||
|
||||
|
@ -1410,7 +1410,7 @@ if(! function_exists('current_theme')) {
|
|||
return($t);
|
||||
}
|
||||
|
||||
$fallback = glob('view/theme/*/style.[css|php]');
|
||||
$fallback = array_merge(glob('view/theme/*/style.css'),glob('view/theme/*/style.php'));
|
||||
if(count($fallback))
|
||||
return (str_replace('view/theme/','', substr($fallback[0],0,-10)));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user