]> git.mxchange.org Git - friendica.git/commitdiff
rework fallback themes, glob pattern was wrong
authorfriendica <info@friendica.com>
Tue, 19 Jun 2012 23:22:38 +0000 (16:22 -0700)
committerfriendica <info@friendica.com>
Tue, 19 Jun 2012 23:22:38 +0000 (16:22 -0700)
boot.php

index 3d0d5098d15454c8322d2214ba0d258404ebe846..78e1dac6a7cc2f3139ca4811e333c392670750a3 100644 (file)
--- a/boot.php
+++ b/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)));