diff options
author | Jay Sitter <jsitter@gmail.com> | 2014-11-17 17:11:33 -0500 |
---|---|---|
committer | Jay Sitter <jsitter@gmail.com> | 2014-11-17 17:11:33 -0500 |
commit | ca6c0de38015e805acf432925059dbb26241bad3 (patch) | |
tree | d6fa34ee7f90338ef301c90b5b4a712c53354383 | |
parent | d91ff81ca60cbe25e773317147855efa35a69b42 (diff) | |
download | wallabag-ca6c0de38015e805acf432925059dbb26241bad3.tar.gz wallabag-ca6c0de38015e805acf432925059dbb26241bad3.tar.zst wallabag-ca6c0de38015e805acf432925059dbb26241bad3.zip |
Adjusting Template class so that _global is ignored as a theme
-rw-r--r-- | inc/poche/Template.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
181 | while (($theme = readdir($handle)) !== false) { | 181 | while (($theme = readdir($handle)) !== false) { |
182 | # Themes are stored in a directory, so all directory names are themes | 182 | # Themes are stored in a directory, so all directory names are themes |
183 | # @todo move theme installation data to database | 183 | # @todo move theme installation data to database |
184 | if (!is_dir(THEME . '/' . $theme) || in_array($theme, array('.', '..'))) { | 184 | if (!is_dir(THEME . '/' . $theme) || in_array($theme, array('.', '..', '_global'))) { |
185 | continue; | 185 | continue; |
186 | } | 186 | } |
187 | 187 | ||
@@ -232,4 +232,4 @@ class Template extends Twig_Environment | |||
232 | Tools::emptyCache(); | 232 | Tools::emptyCache(); |
233 | Tools::redirect('?view=config'); | 233 | Tools::redirect('?view=config'); |
234 | } | 234 | } |
235 | } \ No newline at end of file | 235 | } |