mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13133] Fix variable name in set_custom_style()
PHPBB3-13133
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user