aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-12-30 14:24:58 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2013-12-30 14:24:58 -0600
commit405f883437e248801f3c7d15766a035be53f38ce (patch)
tree40b65dbf3010e109f8c190ca6c7f8563994399a1
parentd062402c4b4a97a7ab4b6d2f316d4d14d8faf70b (diff)
downloadforums-405f883437e248801f3c7d15766a035be53f38ce.tar
forums-405f883437e248801f3c7d15766a035be53f38ce.tar.gz
forums-405f883437e248801f3c7d15766a035be53f38ce.tar.bz2
forums-405f883437e248801f3c7d15766a035be53f38ce.tar.xz
forums-405f883437e248801f3c7d15766a035be53f38ce.zip
[ticket/11902] Use phpbb\php\ini class
PHPBB3-11902
-rw-r--r--phpBB/install/database_update.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 07a8ed7a1e..bad51e2fe3 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -204,7 +204,8 @@ $migrator->set_migrations($migrations);
// 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
-$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,
// we want to try and take additional measures to prevent hitting the