From 9aa8f44489d5a94368e2e30bfa73c1278abfcce7 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Fri, 7 Nov 2014 15:57:31 +0100 Subject: [PATCH] [ticket/13133] Rename $ok variable PHPBB3-13133 --- phpBB/phpbb/template/twig/twig.php | 8 ++++---- 1 file 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);