diff options
author | Gaëtan Muller <m.gaetan89@gmail.com> | 2015-01-11 17:32:31 +0100 |
---|---|---|
committer | Gaëtan Muller <m.gaetan89@gmail.com> | 2015-02-02 19:28:23 +0100 |
commit | 79d4ff553844fa80be4da9286239f62a45489072 (patch) | |
tree | 3a83dabddd37c465de62e60bd2bcecf3c8a29474 /phpBB/install/install_install.php | |
parent | 6e2838a4cabc6e7874ff1a72af2d3eb4f5361428 (diff) | |
download | forums-79d4ff553844fa80be4da9286239f62a45489072.tar forums-79d4ff553844fa80be4da9286239f62a45489072.tar.gz forums-79d4ff553844fa80be4da9286239f62a45489072.tar.bz2 forums-79d4ff553844fa80be4da9286239f62a45489072.tar.xz forums-79d4ff553844fa80be4da9286239f62a45489072.zip |
[ticket/13494] Update calls to `set_config()`
PHPBB3-13494
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); } } |