diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-11-24 13:11:57 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-11-24 13:11:57 +0100 |
commit | 85c5a1ff8d919d3d36a8125c9bbd0d9220025729 (patch) | |
tree | 28a95f126132dbe6c53e1e48f5c2099d29d5649b /inc/poche | |
parent | 7b8bb75228fff2a629388313a3d12cd63c846ad6 (diff) | |
download | wallabag-85c5a1ff8d919d3d36a8125c9bbd0d9220025729.tar.gz wallabag-85c5a1ff8d919d3d36a8125c9bbd0d9220025729.tar.zst wallabag-85c5a1ff8d919d3d36a8125c9bbd0d9220025729.zip |
failover if theme folder doesn't exist
Diffstat (limited to 'inc/poche')
-rw-r--r-- | inc/poche/Template.class.php | 2 |
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 | ||