diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-11-07 15:57:31 +0100 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-11-07 15:57:31 +0100 |
commit | 9aa8f44489d5a94368e2e30bfa73c1278abfcce7 (patch) | |
tree | 7d58139b9e51063d8fb70cc416e8abb0bb327de6 /phpBB | |
parent | d28536370042fb3a967857e5c76bd754f85dab44 (diff) | |
download | forums-9aa8f44489d5a94368e2e30bfa73c1278abfcce7.tar forums-9aa8f44489d5a94368e2e30bfa73c1278abfcce7.tar.gz forums-9aa8f44489d5a94368e2e30bfa73c1278abfcce7.tar.bz2 forums-9aa8f44489d5a94368e2e30bfa73c1278abfcce7.tar.xz forums-9aa8f44489d5a94368e2e30bfa73c1278abfcce7.zip |
[ticket/13133] Rename $ok variable
PHPBB3-13133
Diffstat (limited to 'phpBB')
-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); |