summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-10-17 12:08:31 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-10-20 14:44:44 +0200
commitd9907b6fa3c1523ee19bc6c3d888a0d71521819e (patch)
tree10554e49576d0dac186bc558842545b90e7a9388 /cron.php
parent6af0e76a03b59e82a30e80ea726b274e431a9b61 (diff)
downloadnextcloud-server-d9907b6fa3c1523ee19bc6c3d888a0d71521819e.tar.gz
nextcloud-server-d9907b6fa3c1523ee19bc6c3d888a0d71521819e.zip
move some deprecated usage of OC_Config and OC_AppConfig to \OC::server
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/cron.php b/cron.php
index e77cc885aba..8344e551680 100644
--- a/cron.php
+++ b/cron.php
@@ -132,9 +132,9 @@ try {
// done!
TemporaryCronClass::$sent = true;
- // Log the successfull cron exec
- if (OC_Config::getValue('cron_log', true)) {
- OC_Appconfig::setValue('core', 'lastcron', time());
+ // Log the successful cron execution
+ if (\OC::$server->getConfig()->getSystemValue('cron_log', true)) {
+ \OC::$server->getAppConfig()->setValue('core', 'lastcron', time());
}
exit();