From 36e9ae1e301c2d885191aff6d3b3ebd5dafdb055 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sat, 27 Jan 2024 12:02:45 +0100 Subject: [PATCH] fix(AdminController) Signed-off-by: Marcel Klehr --- lib/Controller/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/AdminController.php b/lib/Controller/AdminController.php index 38f4ab8d..e02388f2 100644 --- a/lib/Controller/AdminController.php +++ b/lib/Controller/AdminController.php @@ -272,7 +272,7 @@ public function gputensorflow(): JSONResponse { } public function cron(): JSONResponse { - $cron = \OCP\Server::get(IConfig::class)->getAppValue('core', 'backgroundjobs_mode', ''); + $cron = \OC::$server->getRegisteredAppContainer('core')->get(IAppConfig::class)->getAppValue('core', 'backgroundjobs_mode', ''); return new JSONResponse(['cron' => $cron]); }