1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11628] Shorten an if to an inline statement

PHPBB3-11628
This commit is contained in:
Nathaniel Guse
2013-07-24 13:26:55 -05:00
parent 12c2258506
commit 3b46f77e4e

View File

@@ -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);