mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 08:05:25 +02:00
[ticket/11195] Condense logic, remove improperly formatted if()
PHPBB3-11195
This commit is contained in:
parent
5a5e507a14
commit
d33aaac199
@ -126,11 +126,8 @@ function phpbb_create_dumped_container(array $extensions, array $passes, $phpbb_
|
|||||||
|
|
||||||
function phpbb_create_dumped_container_unless_debug(array $extensions, array $passes, $phpbb_root_path, $php_ext)
|
function phpbb_create_dumped_container_unless_debug(array $extensions, array $passes, $phpbb_root_path, $php_ext)
|
||||||
{
|
{
|
||||||
if (defined('DEBUG')) {
|
$container_factory = defined('DEBUG') ? 'phpbb_create_compiled_container' : 'phpbb_create_dumped_container';
|
||||||
return phpbb_create_compiled_container($extensions, $passes, $phpbb_root_path, $php_ext);
|
return $container_factory($extensions, $passes, $phpbb_root_path, $php_ext);
|
||||||
}
|
|
||||||
|
|
||||||
return phpbb_create_dumped_container($extensions, $passes, $phpbb_root_path, $php_ext);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function phpbb_container_filename($phpbb_root_path, $php_ext)
|
function phpbb_container_filename($phpbb_root_path, $php_ext)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user