From b009309786fab3b89c9bce5f3f0bc0f1a7b26fd2 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 25 Jan 2024 18:16:55 +0100 Subject: [PATCH] fix(AdminController) Signed-off-by: Marcel Klehr --- lib/Controller/AdminController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Controller/AdminController.php b/lib/Controller/AdminController.php index 0a1e181e..38f4ab8d 100644 --- a/lib/Controller/AdminController.php +++ b/lib/Controller/AdminController.php @@ -29,6 +29,7 @@ use OCP\BackgroundJob\IJobList; use OCP\DB\Exception; use OCP\IBinaryFinder; +use OCP\IConfig; use OCP\IRequest; class AdminController extends Controller { @@ -271,7 +272,7 @@ public function gputensorflow(): JSONResponse { } public function cron(): JSONResponse { - $cron = $this->config->getAppValue('core', 'backgroundjobs_mode', ''); + $cron = \OCP\Server::get(IConfig::class)->getAppValue('core', 'backgroundjobs_mode', ''); return new JSONResponse(['cron' => $cron]); }