diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-10-30 09:51:16 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-10-30 09:51:16 +0100 |
commit | f46d531a4f4d97766ee5dcb5ea8345cfc941d197 (patch) | |
tree | d62d16f6f2c7405708b765fcf48b36a86a152076 /cron.php | |
parent | 0c1a8c953aba8968301f0871a607d5abcf7b3003 (diff) | |
download | nextcloud-server-f46d531a4f4d97766ee5dcb5ea8345cfc941d197.tar.gz nextcloud-server-f46d531a4f4d97766ee5dcb5ea8345cfc941d197.zip |
Replace some OC_Config calls with ILogger methods
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -60,9 +60,10 @@ try { \OC::$server->setSession($session); $logger = \OC::$server->getLogger(); + $config = \OC::$server->getConfig(); // Don't do anything if ownCloud has not been installed - if (!OC_Config::getValue('installed', false)) { + if (!$config->getSystemValue('installed', false)) { exit(0); } @@ -99,7 +100,6 @@ try { } } - $config = OC::$server->getConfig(); $instanceId = $config->getSystemValue('instanceid'); $lockFileName = 'owncloud-server-' . $instanceId . '-cron.lock'; $lockDirectory = $config->getSystemValue('cron.lockfile.location', sys_get_temp_dir()); |