mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/11628] Shorten an if to an inline statement
PHPBB3-11628
This commit is contained in:
@@ -241,15 +241,8 @@ class phpbb_template_twig implements phpbb_template
|
|||||||
*/
|
*/
|
||||||
public function set_custom_style($names, $paths)
|
public function set_custom_style($names, $paths)
|
||||||
{
|
{
|
||||||
if (is_string($paths))
|
$paths = (is_string($paths)) ? array($paths) : $paths;
|
||||||
{
|
$names = (is_string($names)) ? array($names) : $names;
|
||||||
$paths = array($paths);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_string($names))
|
|
||||||
{
|
|
||||||
$names = array($names);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set as __main__ namespace
|
// Set as __main__ namespace
|
||||||
$this->twig->getLoader()->setPaths($paths);
|
$this->twig->getLoader()->setPaths($paths);
|
||||||
|
Reference in New Issue
Block a user