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:
parent
7b8bb75228
commit
85c5a1ff8d
52 changed files with 1 additions and 1348 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue