diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2015-02-02 20:07:46 +0100 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2015-02-02 20:07:46 +0100 |
| commit | df77174a2b2a8f9e86ee8f992556dd4820484be3 (patch) | |
| tree | 3a83dabddd37c465de62e60bd2bcecf3c8a29474 /phpBB/install/install_install.php | |
| parent | 6e2838a4cabc6e7874ff1a72af2d3eb4f5361428 (diff) | |
| parent | 79d4ff553844fa80be4da9286239f62a45489072 (diff) | |
| download | forums-df77174a2b2a8f9e86ee8f992556dd4820484be3.tar forums-df77174a2b2a8f9e86ee8f992556dd4820484be3.tar.gz forums-df77174a2b2a8f9e86ee8f992556dd4820484be3.tar.bz2 forums-df77174a2b2a8f9e86ee8f992556dd4820484be3.tar.xz forums-df77174a2b2a8f9e86ee8f992556dd4820484be3.zip | |
Merge pull request #3280 from MGaetan89/ticket/13494
[ticket/13494] Change set_config() calls with $config->set()
* MGaetan89/ticket/13494:
[ticket/13494] Update calls to `set_config()`
Diffstat (limited to 'phpBB/install/install_install.php')
| -rw-r--r-- | phpBB/install/install_install.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 303d185e84..819f5bec9e 100644 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -1493,7 +1493,6 @@ class install_install extends module // We need to fill the config to let internal functions correctly work $config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE); - set_config(null, null, null, $config); set_config_count(null, null, null, $config); $error = false; @@ -1910,7 +1909,6 @@ class install_install extends module // We need to fill the config to let internal functions correctly work $config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE); - set_config(null, null, null, $config); set_config_count(null, null, null, $config); $sql = 'SELECT group_id @@ -1984,7 +1982,6 @@ class install_install extends module // We need to fill the config to let internal functions correctly work $config = new \phpbb\config\db($db, new \phpbb\cache\driver\null, CONFIG_TABLE); - set_config(null, null, null, $config); set_config_count(null, null, null, $config); $user->session_begin(); @@ -2032,12 +2029,12 @@ class install_install extends module */ function disable_avatars_if_unwritable() { - global $phpbb_root_path; + global $config, $phpbb_root_path; if (!phpbb_is_writable($phpbb_root_path . 'images/avatars/upload/')) { - set_config('allow_avatar', 0); - set_config('allow_avatar_upload', 0); + $config->set('allow_avatar', 0); + $config->set('allow_avatar_upload', 0); } } |
