[Pkg-owncloud-commits] [owncloud] 22/78: Fix config API usage in cron.php

David Prévot taffit at moszumanska.debian.org
Sun May 31 01:59:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 2bb6a920e348f50ca7c50dfaaa70454bbc70eb31
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Tue Mar 24 18:19:43 2015 +0100

    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 8a3240d..b3ba960 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;
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list