diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-12-10 18:30:46 +0100 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2021-12-13 19:20:10 +0000 |
commit | c92ac3471166f2697db1d9a696e31d0c06ac2e64 (patch) | |
tree | 96914d40cfa6bf77111af86f5a59292a6e46f9b1 | |
parent | 0877d62c47096c72ebad1207adfd9c7a4d39d978 (diff) | |
download | nextcloud-server-c92ac3471166f2697db1d9a696e31d0c06ac2e64.tar.gz nextcloud-server-c92ac3471166f2697db1d9a696e31d0c06ac2e64.zip |
Use proper app id (settings instead of core)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | core/Migrations/Version24000Date20211210141942.php | 2 | ||||
-rw-r--r-- | lib/private/AllConfig.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/Migrations/Version24000Date20211210141942.php b/core/Migrations/Version24000Date20211210141942.php index fb9003457b2..ea85e331d55 100644 --- a/core/Migrations/Version24000Date20211210141942.php +++ b/core/Migrations/Version24000Date20211210141942.php @@ -55,7 +55,7 @@ class Version24000Date20211210141942 extends SimpleMigrationStep { $update->update('preferences') ->set('configvalue', $update->func()->lower('configvalue')) - ->where($update->expr()->eq('appid', $update->createNamedParameter('core'))) + ->where($update->expr()->eq('appid', $update->createNamedParameter('settings'))) ->andWhere($update->expr()->eq('configkey', $update->createNamedParameter('email'))); $update->executeStatement(); diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php index 4e7ec7554f7..ac2f9d7bf45 100644 --- a/lib/private/AllConfig.php +++ b/lib/private/AllConfig.php @@ -260,7 +260,7 @@ class AllConfig implements \OCP\IConfig { // TODO - FIXME $this->fixDIInit(); - if ($appName === 'core' && $key === 'email') { + if ($appName === 'settings' && $key === 'email') { $value = strtolower((string) $value); } @@ -518,7 +518,7 @@ class AllConfig implements \OCP\IConfig { // TODO - FIXME $this->fixDIInit(); - if ($appName === 'core' && $key === 'email') { + if ($appName === 'settings' && $key === 'email') { // Email address is always stored lowercase in the database return $this->getUsersForUserValue($appName, $key, strtolower($value)); } |