diff options
Diffstat (limited to 'phpBB/phpbb/template')
-rw-r--r-- | phpBB/phpbb/template/twig/twig.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php index 84d5450d98..5b71bb5e8a 100644 --- a/phpBB/phpbb/template/twig/twig.php +++ b/phpBB/phpbb/template/twig/twig.php @@ -191,19 +191,19 @@ class twig extends \phpbb\template\base $template_path = $path . 'template/'; $theme_path = $path . 'theme/'; - $ok = false; + $is_valid_dir = false; if (is_dir($template_path)) { - $ok = true; + $is_valid_dir = true; $paths[] = $template_path; } if (is_dir($theme_path)) { - $ok = true; + $is_valid_dir = true; $paths[] = $theme_path; } - if ($ok) + if ($is_valid_dir) { // Add the base style directory as a safe directory $this->twig->getLoader()->addSafeDirectory($path); |