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]); }