diff options
author | Matt Friedman <maf675@gmail.com> | 2015-01-20 14:21:02 -0800 |
---|---|---|
committer | Matt Friedman <maf675@gmail.com> | 2015-01-20 14:21:02 -0800 |
commit | 41966c481fd0b9a9414f670c0297cdd5dd9ce60d (patch) | |
tree | 40f47f22fe3406be03ac5f4be7aab68deb783fd3 /phpBB/phpbb/template | |
parent | f02dc44a23e60c451552a52db2ddd38183c1e387 (diff) | |
download | forums-41966c481fd0b9a9414f670c0297cdd5dd9ce60d.tar forums-41966c481fd0b9a9414f670c0297cdd5dd9ce60d.tar.gz forums-41966c481fd0b9a9414f670c0297cdd5dd9ce60d.tar.bz2 forums-41966c481fd0b9a9414f670c0297cdd5dd9ce60d.tar.xz forums-41966c481fd0b9a9414f670c0297cdd5dd9ce60d.zip |
[ticket/13133] Fix variable name in set_custom_style()
PHPBB3-13133
Diffstat (limited to 'phpBB/phpbb/template')
-rw-r--r-- | phpBB/phpbb/template/twig/twig.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php index db3a8e3571..bd754d9bbd 100644 --- a/phpBB/phpbb/template/twig/twig.php +++ b/phpBB/phpbb/template/twig/twig.php @@ -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); |