aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2015-01-20 23:48:24 +0100
committerTristan Darricau <github@nicofuma.fr>2015-01-20 23:48:24 +0100
commit5307f47654fef0dc3581d1497686a7d72aa8294a (patch)
tree747636e0cd016df0439182b380723780ec466bf3 /phpBB/phpbb/template
parentfd25d00fac21f766fc7a448aee2c9b0b0991b926 (diff)
parent08e186af8ed867c5d755d0fe979e5e9e46e3c09e (diff)
downloadforums-5307f47654fef0dc3581d1497686a7d72aa8294a.tar
forums-5307f47654fef0dc3581d1497686a7d72aa8294a.tar.gz
forums-5307f47654fef0dc3581d1497686a7d72aa8294a.tar.bz2
forums-5307f47654fef0dc3581d1497686a7d72aa8294a.tar.xz
forums-5307f47654fef0dc3581d1497686a7d72aa8294a.zip
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/13133] Fix variable name in set_custom_style()
Diffstat (limited to 'phpBB/phpbb/template')
-rw-r--r--phpBB/phpbb/template/twig/twig.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php
index 4962d14aef..605d37e954 100644
--- a/phpBB/phpbb/template/twig/twig.php
+++ b/phpBB/phpbb/template/twig/twig.php
@@ -261,19 +261,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);