summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index 8c02536744e..6ace29650ee 100644
--- a/cron.php
+++ b/cron.php
@@ -64,7 +64,7 @@ try {
\OC::$server->getTempManager()->cleanOld();
// Exit if background jobs are disabled!
- $appMode = OC_BackgroundJob::getExecutionType();
+ $appMode = \OCP\BackgroundJob::getExecutionType();
if ($appMode == 'none') {
if (OC::$CLI) {
echo 'Background Jobs are disabled!' . PHP_EOL;
@@ -107,7 +107,7 @@ try {
// We call ownCloud from the CLI (aka cron)
if ($appMode != 'cron') {
- OC_BackgroundJob::setExecutionType('cron');
+ \OCP\BackgroundJob::setExecutionType('cron');
}
// open the file and try to lock if. If it is not locked, the background