Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-10-17 14:08:31 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-10-20 16:44:44 +0400
commitd9907b6fa3c1523ee19bc6c3d888a0d71521819e (patch)
tree10554e49576d0dac186bc558842545b90e7a9388 /cron.php
parent6af0e76a03b59e82a30e80ea726b274e431a9b61 (diff)
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();