From 2bb6a920e348f50ca7c50dfaaa70454bbc70eb31 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 24 Mar 2015 18:19:43 +0100 Subject: [PATCH] Fix config API usage in cron.php --- cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.php b/cron.php index 8a3240da14b..b3ba9605d4f 100644 --- a/cron.php +++ b/cron.php @@ -52,7 +52,7 @@ try { \OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG); exit; } - if (\OC::$server->getSystemConfig()->getValue('maintenance', false)) { + if (\OC_Config::getValue('maintenance', false)) { \OCP\Util::writeLog('cron', 'We are in maintenance mode, skipping cron', \OCP\Util::DEBUG); exit; } -- 2.39.5