summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
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();