aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Template.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche/Template.class.php')
-rw-r--r--inc/poche/Template.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/poche/Template.class.php b/inc/poche/Template.class.php
index 20e9c54a..4d0bfdbb 100644
--- a/inc/poche/Template.class.php
+++ b/inc/poche/Template.class.php
@@ -24,7 +24,7 @@ class Template extends Twig_Environment
24 24
25 $themeDirectory = (is_null($pocheUser) ? DEFAULT_THEME : $pocheUser->getConfigValue('theme')); 25 $themeDirectory = (is_null($pocheUser) ? DEFAULT_THEME : $pocheUser->getConfigValue('theme'));
26 26
27 if ($themeDirectory === false) { 27 if ($themeDirectory === false || !is_dir(THEME . '/' . $themeDirectory)) {
28 $themeDirectory = DEFAULT_THEME; 28 $themeDirectory = DEFAULT_THEME;
29 } 29 }
30 30