aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-09-16 11:55:13 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-09-16 11:55:13 +0200
commita562fea2306c8ba5b47a161568bea5fbe2ffd19f (patch)
treefcab88a3a5dd5f05c77934eef0983793f2e2bd6a /phpBB/install
parentd4a47409f7da09790f38d3418401cbe34f8c3703 (diff)
parent6651c1d8f4aead15f4750989670f75721390ee21 (diff)
downloadforums-a562fea2306c8ba5b47a161568bea5fbe2ffd19f.tar
forums-a562fea2306c8ba5b47a161568bea5fbe2ffd19f.tar.gz
forums-a562fea2306c8ba5b47a161568bea5fbe2ffd19f.tar.bz2
forums-a562fea2306c8ba5b47a161568bea5fbe2ffd19f.tar.xz
forums-a562fea2306c8ba5b47a161568bea5fbe2ffd19f.zip
Merge pull request #3727 from marc1706/ticket/13904
[ticket/13904] Refactor attachments functions into service * marc1706/ticket/13904: (66 commits) [ticket/13904] Use filespec's get_filesize instead of calling filesize() [ticket/13904] Set properties to protected where possible in filespec [ticket/13904] Fix tests after changes to factory [ticket/13904] Minor coding style fixes [ticket/13904] Add language entries for error messages in upload class [ticket/13904] Modify files for updated fast-image-size library [ticket/13904] Update composer.lock [ticket/13904] Improve code coverage [ticket/13904] Add unit tests for local upload type [ticket/13904] Minor coding style fixes [ticket/13904] Improve test coverage of base upload type class [ticket/13904] Improve test coverage of remote upload type [ticket/13904] Improve test coverage of form upload type [ticket/13904] Improve test coverage of filespec class [ticket/13904] Add back tests for retrieving floats [ticket/13904] Use ini_get() wrapper in file upload types [ticket/13904] Modify files for changes in ini wrapper [ticket/13904] Add bantu/ini-get-wrapper to composer.json [ticket/13904] Switch around constructor arguments [ticket/13904] Use \phpbb\php\ini class for ini_get() ...
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/database_update.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 853848d637..299467b5f3 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -205,8 +205,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
-$phpbb_ini = new \phpbb\php\ini();
-$safe_time_limit = min(15, ($phpbb_ini->get_int('max_execution_time') / 2));
+$phpbb_ini = new \bantu\IniGetWrapper\IniGetWrapper();
+$safe_time_limit = min(15, ($phpbb_ini->getNumeric('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