mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 03:12:21 -05:00
Adjusting Template class so that _global is ignored as a theme
This commit is contained in:
parent
d91ff81ca6
commit
ca6c0de380
@ -181,7 +181,7 @@ class Template extends Twig_Environment
|
|||||||
while (($theme = readdir($handle)) !== false) {
|
while (($theme = readdir($handle)) !== false) {
|
||||||
# Themes are stored in a directory, so all directory names are themes
|
# Themes are stored in a directory, so all directory names are themes
|
||||||
# @todo move theme installation data to database
|
# @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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,4 +232,4 @@ class Template extends Twig_Environment
|
|||||||
Tools::emptyCache();
|
Tools::emptyCache();
|
||||||
Tools::redirect('?view=config');
|
Tools::redirect('?view=config');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user