diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-04-18 23:37:32 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-18 23:37:32 +0200 |
commit | 60b8aa2a83fe100f410a6d80b09adaf882619301 (patch) | |
tree | e53a67e7a5bd12de3d27cacd3887be832165f2fe /cron.php | |
parent | cdf82909b8225a885fbf92b78208fb1fe258853e (diff) | |
download | nextcloud-server-60b8aa2a83fe100f410a6d80b09adaf882619301.tar.gz nextcloud-server-60b8aa2a83fe100f410a6d80b09adaf882619301.zip |
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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |