aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/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/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/phpbb/install')
-rw-r--r--phpBB/phpbb/install/helper/config.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/install/helper/config.php b/phpBB/phpbb/install/helper/config.php
index b0480e7e5b..d5653f1924 100644
--- a/phpBB/phpbb/install/helper/config.php
+++ b/phpBB/phpbb/install/helper/config.php
@@ -41,7 +41,7 @@ class config
protected $install_config_file;
/**
- * @var \phpbb\php\ini
+ * @var \bantu\IniGetWrapper\IniGetWrapper
*/
protected $php_ini;
@@ -83,7 +83,7 @@ class config
/**
* Constructor
*/
- public function __construct(\phpbb\filesystem\filesystem_interface $filesystem, \phpbb\php\ini $php_ini, $phpbb_root_path)
+ public function __construct(\phpbb\filesystem\filesystem_interface $filesystem, \bantu\IniGetWrapper\IniGetWrapper $php_ini, $phpbb_root_path)
{
$this->filesystem = $filesystem;
$this->php_ini = $php_ini;
@@ -373,7 +373,7 @@ class config
protected function setup_system_data()
{
// Query maximum runtime from php.ini
- $execution_time = $this->php_ini->get_int('max_execution_time');
+ $execution_time = $this->php_ini->getNumeric('max_execution_time');
$execution_time = min(15, $execution_time / 2);
$this->system_data['max_execution_time'] = $execution_time;
@@ -381,6 +381,6 @@ class config
$this->system_data['start_time'] = time();
// Get memory limit
- $this->system_data['memory_limit'] = $this->php_ini->get_bytes('memory_limit');
+ $this->system_data['memory_limit'] = $this->php_ini->getBytes('memory_limit');
}
}