]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Adjusting Template class so that _global is ignored as a theme 937/head
authorJay Sitter <jsitter@gmail.com>
Mon, 17 Nov 2014 22:11:33 +0000 (17:11 -0500)
committerJay Sitter <jsitter@gmail.com>
Mon, 17 Nov 2014 22:11:33 +0000 (17:11 -0500)
inc/poche/Template.class.php

index b686f2ec783037553db3af677606b46a6256c215..20e9c54a670f908fad9a20a1eb9fd10850dc1289 100644 (file)
@@ -181,7 +181,7 @@ class Template extends Twig_Environment
         while (($theme = readdir($handle)) !== false) {
             # Themes are stored in a directory, so all directory names are themes
             # @todo move theme installation data to database
-            if (!is_dir(THEME . '/' . $theme) || in_array($theme, array('.', '..'))) {
+            if (!is_dir(THEME . '/' . $theme) || in_array($theme, array('.', '..', '_global'))) {
                 continue;
             }
 
@@ -232,4 +232,4 @@ class Template extends Twig_Environment
         Tools::emptyCache();
         Tools::redirect('?view=config');
     }
-}
\ No newline at end of file
+}