aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/twig/twig.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/template/twig/twig.php')
-rw-r--r--phpBB/phpbb/template/twig/twig.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php
index 4aa1774ef4..c3ed52c3bd 100644
--- a/phpBB/phpbb/template/twig/twig.php
+++ b/phpBB/phpbb/template/twig/twig.php
@@ -241,15 +241,8 @@ class phpbb_template_twig implements phpbb_template
*/
public function set_custom_style($names, $paths)
{
- if (is_string($paths))
- {
- $paths = array($paths);
- }
-
- if (is_string($names))
- {
- $names = array($names);
- }
+ $paths = (is_string($paths)) ? array($paths) : $paths;
+ $names = (is_string($names)) ? array($names) : $names;
// Set as __main__ namespace
$this->twig->getLoader()->setPaths($paths);