From: Vincent Petry Date: Tue, 24 Mar 2015 17:19:43 +0000 (+0100) Subject: Fix config API usage in cron.php X-Git-Tag: v7.0.6RC1~18^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2bb6a920e348f50ca7c50dfaaa70454bbc70eb31;p=nextcloud-server.git Fix config API usage in cron.php --- 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; }