From ca6c0de38015e805acf432925059dbb26241bad3 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Mon, 17 Nov 2014 17:11:33 -0500 Subject: Adjusting Template class so that _global is ignored as a theme --- inc/poche/Template.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/poche/Template.class.php') diff --git a/inc/poche/Template.class.php b/inc/poche/Template.class.php index b686f2ec..20e9c54a 100644 --- a/inc/poche/Template.class.php +++ b/inc/poche/Template.class.php @@ -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 +} -- cgit v1.2.3