1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

failover if theme folder doesn't exist

This commit is contained in:
Nicolas Lœuillet 2014-11-24 13:11:57 +01:00
parent 7b8bb75228
commit 85c5a1ff8d
52 changed files with 1 additions and 1348 deletions

View 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;
}