diff options
author | SebastianKrupinski <krupinskis05@gmail.com> | 2025-07-07 15:34:16 -0400 |
---|---|---|
committer | SebastianKrupinski <krupinskis05@gmail.com> | 2025-07-07 15:34:16 -0400 |
commit | 7e3b04e7ab021c2baa8cfa61f50f5f35b7533bde (patch) | |
tree | a9799a8ce36a4d248e3eb36a725ee0afe7b3d20c | |
parent | 62678c46da582386d1ee78af62c474e03cddac91 (diff) | |
download | nextcloud-server-fix/49431-automatically-disable-sab.tar.gz nextcloud-server-fix/49431-automatically-disable-sab.zip |
fixup! fix: automatically disable sabfix/49431-automatically-disable-sab
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
-rw-r--r-- | apps/dav/lib/Migration/Version1032Date20250701000000.php | 2 | ||||
-rw-r--r-- | apps/dav/lib/SetupChecks/SystemAddressBookSize.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/Migration/Version1032Date20250701000000.php b/apps/dav/lib/Migration/Version1032Date20250701000000.php index 479d4de832f..119486cc316 100644 --- a/apps/dav/lib/Migration/Version1032Date20250701000000.php +++ b/apps/dav/lib/Migration/Version1032Date20250701000000.php @@ -36,7 +36,7 @@ class Version1032Date20250701000000 extends SimpleMigrationStep { return; } // We use count seen because getting a user count from the backend can be very slow - $limit = $this->appConfig->getAppValueBool('system_addressbook_limit', 5000); + $limit = $this->appConfig->getAppValueInt('system_addressbook_limit', 5000); if ($this->userManager->countSeenUsers() <= $limit) { return; } diff --git a/apps/dav/lib/SetupChecks/SystemAddressBookSize.php b/apps/dav/lib/SetupChecks/SystemAddressBookSize.php index 8b37820e71b..320676a2786 100644 --- a/apps/dav/lib/SetupChecks/SystemAddressBookSize.php +++ b/apps/dav/lib/SetupChecks/SystemAddressBookSize.php @@ -42,9 +42,9 @@ class SystemAddressBookSize implements ISetupCheck { $limit = $this->appConfig->getValueInt(Application::APP_ID, 'system_addressbook_limit', 5000); if ($count > $limit) { - return SetupResult::warning($this->l10n->t('The system address book is enabled, but exceeded the maximum recommended number of contacts %d', $limit)); + return SetupResult::warning($this->l10n->t('The system address book is enabled, but exceeded the maximum recommended number of contacts %d', [$limit])); } else { - return SetupResult::success($this->l10n->t('The system address book is enabled and contains less then the maximum recommended number of contacts %d', $limit)); + return SetupResult::success($this->l10n->t('The system address book is enabled and contains less then the maximum recommended number of contacts %d', [$limit])); } } } |