diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-23 11:13:47 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-01-23 14:52:21 +0100 |
commit | 039397bd3104d92f7957263520eab0ccfb54f869 (patch) | |
tree | bf87c547f087ba08cea035de5a881c35b2f4c9e3 /core/command | |
parent | c61e9f391273e5f7f4b7aa91ee4174d47402cae9 (diff) | |
download | nextcloud-server-039397bd3104d92f7957263520eab0ccfb54f869.tar.gz nextcloud-server-039397bd3104d92f7957263520eab0ccfb54f869.zip |
Use setConfigs() instead of calling setConfig() multiple times
Diffstat (limited to 'core/command')
-rw-r--r-- | core/command/db/converttype.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php index 9d03b705d12..cbce1c37101 100644 --- a/core/command/db/converttype.php +++ b/core/command/db/converttype.php @@ -289,10 +289,12 @@ class ConvertType extends Command { $dbhost .= ':'.$input->getOption('port'); } - $this->config->setSystemValue('dbtype', $type); - $this->config->setSystemValue('dbname', $dbname); - $this->config->setSystemValue('dbhost', $dbhost); - $this->config->setSystemValue('dbuser', $username); - $this->config->setSystemValue('dbpassword', $password); + $this->config->setSystemValues([ + 'dbtype' => $type, + 'dbname' => $dbname, + 'dbhost' => $dbhost, + 'dbuser' => $username, + 'dbpassword' => $password, + ]); } } |