summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-26 13:36:22 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-26 13:36:22 +0100
commit5da4071c4553b5ee64799856e4db58e9484d9839 (patch)
treea266d0814d94d572e2a0a0d913ca592ca29e9719 /core
parent810d5a6a675bed9a6a04bf7995a88021642c36e5 (diff)
parent9ad9d7bfbb85b03bacf0ed1c12d16bae5c8bc6ac (diff)
downloadnextcloud-server-5da4071c4553b5ee64799856e4db58e9484d9839.tar.gz
nextcloud-server-5da4071c4553b5ee64799856e4db58e9484d9839.zip
Merge pull request #13621 from owncloud/system-config-multiset
Add a method to set/unset multiple config values with one write
Diffstat (limited to 'core')
-rw-r--r--core/command/db/converttype.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 9d03b705d12..a2fdab99ba3 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -282,17 +282,19 @@ class ConvertType extends Command {
protected function saveDBInfo(InputInterface $input) {
$type = $input->getArgument('type');
$username = $input->getArgument('username');
- $dbhost = $input->getArgument('hostname');
- $dbname = $input->getArgument('database');
+ $dbHost = $input->getArgument('hostname');
+ $dbName = $input->getArgument('database');
$password = $input->getOption('password');
if ($input->getOption('port')) {
- $dbhost .= ':'.$input->getOption('port');
+ $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,
+ ]);
}
}