]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix config API usage in cron.php
authorVincent Petry <pvince81@owncloud.com>
Tue, 24 Mar 2015 17:19:43 +0000 (18:19 +0100)
committerVincent Petry <pvince81@owncloud.com>
Tue, 24 Mar 2015 17:19:43 +0000 (18:19 +0100)
cron.php

index 8a3240da14bacc221367850424b98b0ebac7e304..b3ba9605d4f4a516b4589ac3560a096a653184a9 100644 (file)
--- 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;
        }