]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Template.class.php
foo test
[github/wallabag/wallabag.git] / inc / poche / Template.class.php
index 20e9c54a670f908fad9a20a1eb9fd10850dc1289..4d0bfdbb13161c4a6c8b3a625bfd58bbfa1bd157 100644 (file)
@@ -24,7 +24,7 @@ class Template extends Twig_Environment
 
         $themeDirectory = (is_null($pocheUser) ? DEFAULT_THEME : $pocheUser->getConfigValue('theme'));
 
-        if ($themeDirectory === false) {
+        if ($themeDirectory === false || !is_dir(THEME . '/' . $themeDirectory)) {
             $themeDirectory = DEFAULT_THEME;
         }