diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-24 13:26:55 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-24 13:26:55 -0500 |
commit | 3b46f77e4e77defdd7c38249c865fdaecd83629e (patch) | |
tree | 7d2c705492b8f1824e84e78a6136448d4d061955 /phpBB/phpbb/template | |
parent | 12c22585069066957cc3211136ebd480295d4758 (diff) | |
download | forums-3b46f77e4e77defdd7c38249c865fdaecd83629e.tar forums-3b46f77e4e77defdd7c38249c865fdaecd83629e.tar.gz forums-3b46f77e4e77defdd7c38249c865fdaecd83629e.tar.bz2 forums-3b46f77e4e77defdd7c38249c865fdaecd83629e.tar.xz forums-3b46f77e4e77defdd7c38249c865fdaecd83629e.zip |
[ticket/11628] Shorten an if to an inline statement
PHPBB3-11628
Diffstat (limited to 'phpBB/phpbb/template')
-rw-r--r-- | phpBB/phpbb/template/twig/twig.php | 11 |
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); |