aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-06-20 14:44:02 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-06-28 18:00:39 +0200
commit14778811b4c019cfdc090a64e3baf0ab4bef9f8e (patch)
treef0394c2ec98ba3cde38f081f8496cc4b853136c6 /apps/settings/lib
parent4d6a21a3795355a4e94d60dcc468db81fdc4a47e (diff)
downloadnextcloud-server-14778811b4c019cfdc090a64e3baf0ab4bef9f8e.tar.gz
nextcloud-server-14778811b4c019cfdc090a64e3baf0ab4bef9f8e.zip
refactor: Use `IAppConfig` for setting cron type
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r--apps/settings/lib/Settings/Admin/Server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Settings/Admin/Server.php b/apps/settings/lib/Settings/Admin/Server.php
index 79fcba6b92f..d96228e6ec6 100644
--- a/apps/settings/lib/Settings/Admin/Server.php
+++ b/apps/settings/lib/Settings/Admin/Server.php
@@ -41,7 +41,7 @@ class Server implements IDelegatedSettings {
$cliBasedCronUser = $cliBasedCronPossible ? (posix_getpwuid($ownerConfigFile)['name'] ?? '') : '';
// Background jobs
- $this->initialStateService->provideInitialState('backgroundJobsMode', $this->config->getAppValue('core', 'backgroundjobs_mode', 'ajax'));
+ $this->initialStateService->provideInitialState('backgroundJobsMode', $this->appConfig->getValueString('core', 'backgroundjobs_mode', 'ajax'));
$this->initialStateService->provideInitialState('lastCron', $this->appConfig->getValueInt('core', 'lastcron', 0));
$this->initialStateService->provideInitialState('cronMaxAge', $this->cronMaxAge());
$this->initialStateService->provideInitialState('cronErrors', $this->config->getAppValue('core', 'cronErrors'));