[ticket/13133] Fix variable name in set_custom_style()

PHPBB3-13133
This commit is contained in:
Matt Friedman 2015-01-20 14:21:02 -08:00
parent f02dc44a23
commit 41966c481f

View file

@ -285,19 +285,19 @@ class twig extends \phpbb\template\base
$ext_style_theme_path = $ext_style_path . 'theme/';
}
$ok = false;
$is_valid_dir = false;
if (is_dir($ext_style_template_path))
{
$ok = true;
$is_valid_dir = true;
$paths[] = $ext_style_template_path;
}
if (is_dir($ext_style_theme_path))
{
$ok = true;
$is_valid_dir = true;
$paths[] = $ext_style_theme_path;
}
if ($ok)
if ($is_valid_dir)
{
// Add the base style directory as a safe directory
$this->twig->getLoader()->addSafeDirectory($ext_style_path);