From 82eb3f8027ba95dd859cde75241921222d970ce1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 17 Sep 2015 08:48:25 +0200 Subject: Fix the singleuser config casing in new encryption code --- core/command/encryption/decryptall.php | 6 +++--- core/command/encryption/encryptall.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'core') diff --git a/core/command/encryption/decryptall.php b/core/command/encryption/decryptall.php index 374f635725f..696570b7ae6 100644 --- a/core/command/encryption/decryptall.php +++ b/core/command/encryption/decryptall.php @@ -77,13 +77,13 @@ class DecryptAll extends Command { $this->questionHelper = $questionHelper; $this->wasTrashbinEnabled = $this->appManager->isEnabledForUser('files_trashbin'); - $this->wasSingleUserModeEnabled = $this->config->getSystemValue('singleUser', false); - $this->config->setSystemValue('singleUser', true); + $this->wasSingleUserModeEnabled = $this->config->getSystemValue('singleuser', false); + $this->config->setSystemValue('singleuser', true); $this->appManager->disableApp('files_trashbin'); } public function __destruct() { - $this->config->setSystemValue('singleUser', $this->wasSingleUserModeEnabled); + $this->config->setSystemValue('singleuser', $this->wasSingleUserModeEnabled); if ($this->wasTrashbinEnabled) { $this->appManager->enableApp('files_trashbin'); } diff --git a/core/command/encryption/encryptall.php b/core/command/encryption/encryptall.php index 7f33e18ecbb..950ce5166d8 100644 --- a/core/command/encryption/encryptall.php +++ b/core/command/encryption/encryptall.php @@ -68,13 +68,13 @@ class EncryptAll extends Command { $this->config = $config; $this->questionHelper = $questionHelper; $this->wasTrashbinEnabled = $this->appManager->isEnabledForUser('files_trashbin'); - $this->wasSingleUserModeEnabled = $this->config->getSystemValue('singleUser', false); - $this->config->setSystemValue('singleUser', true); + $this->wasSingleUserModeEnabled = $this->config->getSystemValue('singleuser', false); + $this->config->setSystemValue('singleuser', true); $this->appManager->disableApp('files_trashbin'); } public function __destruct() { - $this->config->setSystemValue('singleUser', $this->wasSingleUserModeEnabled); + $this->config->setSystemValue('singleuser', $this->wasSingleUserModeEnabled); if ($this->wasTrashbinEnabled) { $this->appManager->enableApp('files_trashbin'); } -- cgit v1.2.3