mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13133] Fix variable name in set_custom_style()
PHPBB3-13133
This commit is contained in:
parent
f02dc44a23
commit
41966c481f
1 changed files with 4 additions and 4 deletions
|
@ -285,19 +285,19 @@ class twig extends \phpbb\template\base
|
||||||
$ext_style_theme_path = $ext_style_path . 'theme/';
|
$ext_style_theme_path = $ext_style_path . 'theme/';
|
||||||
}
|
}
|
||||||
|
|
||||||
$ok = false;
|
$is_valid_dir = false;
|
||||||
if (is_dir($ext_style_template_path))
|
if (is_dir($ext_style_template_path))
|
||||||
{
|
{
|
||||||
$ok = true;
|
$is_valid_dir = true;
|
||||||
$paths[] = $ext_style_template_path;
|
$paths[] = $ext_style_template_path;
|
||||||
}
|
}
|
||||||
if (is_dir($ext_style_theme_path))
|
if (is_dir($ext_style_theme_path))
|
||||||
{
|
{
|
||||||
$ok = true;
|
$is_valid_dir = true;
|
||||||
$paths[] = $ext_style_theme_path;
|
$paths[] = $ext_style_theme_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($ok)
|
if ($is_valid_dir)
|
||||||
{
|
{
|
||||||
// Add the base style directory as a safe directory
|
// Add the base style directory as a safe directory
|
||||||
$this->twig->getLoader()->addSafeDirectory($ext_style_path);
|
$this->twig->getLoader()->addSafeDirectory($ext_style_path);
|
||||||
|
|
Loading…
Add table
Reference in a new issue