[ticket/13133] Rename $ok variable

PHPBB3-13133
This commit is contained in:
Tristan Darricau 2014-11-07 15:57:31 +01:00
parent d285363700
commit 9aa8f44489

View file

@ -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);