mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge pull request #3314 from VSEphpbb/ticket/13133
[ticket/13133] Fix variable name in set_custom_style() * VSEphpbb/ticket/13133: [ticket/13133] Fix variable name in set_custom_style()
This commit is contained in:
commit
08e186af8e
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/';
|
||||
}
|
||||
|
||||
$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);
|
||||
|
|
Loading…
Add table
Reference in a new issue