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:
authorMorris Jobke <hey@morrisjobke.de>2015-04-19 00:37:32 +0300
committerMorris Jobke <hey@morrisjobke.de>2015-04-19 00:37:32 +0300
commit60b8aa2a83fe100f410a6d80b09adaf882619301 (patch)
treee53a67e7a5bd12de3d27cacd3887be832165f2fe /cron.php
parentcdf82909b8225a885fbf92b78208fb1fe258853e (diff)
Removed OC_BackgroundJob - reduce class overhead
* method code is now in the static public namespace (5 sloc)
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