mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11902] Use phpbb\php\ini class
PHPBB3-11902
This commit is contained in:
parent
d062402c4b
commit
405f883437
1 changed files with 2 additions and 1 deletions
|
@ -204,7 +204,8 @@ $migrator->set_migrations($migrations);
|
||||||
|
|
||||||
// What is a safe limit of execution time? Half the max execution time should be safe.
|
// What is a safe limit of execution time? Half the max execution time should be safe.
|
||||||
// No more than 15 seconds so the user isn't sitting and waiting for a very long time
|
// No more than 15 seconds so the user isn't sitting and waiting for a very long time
|
||||||
$safe_time_limit = min(15, (ini_get('max_execution_time') / 2));
|
$phpbb_ini = new \phpbb\php\ini();
|
||||||
|
$safe_time_limit = min(15, ($phpbb_ini->get_int('max_execution_time') / 2));
|
||||||
|
|
||||||
// While we're going to try limit this to half the max execution time,
|
// While we're going to try limit this to half the max execution time,
|
||||||
// we want to try and take additional measures to prevent hitting the
|
// we want to try and take additional measures to prevent hitting the
|
||||||
|
|
Loading…
Add table
Reference in a new issue