mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
[ticket/11195] Condense logic, remove improperly formatted if()
PHPBB3-11195
This commit is contained in:
parent
5a5e507a14
commit
d33aaac199
1 changed files with 2 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue