summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-10-27 10:23:36 +0200
committerJakob Sack <mail@jakobsack.de>2012-10-27 10:23:36 +0200
commit22dcd3b6a691c7a245e4d1de30f09bb17efdfceb (patch)
treeb994aa8ab91bac2976d85471daed23a536410c41 /cron.php
parentd0bbd9416b036e4d89599b8c44b2110743264508 (diff)
downloadnextcloud-server-22dcd3b6a691c7a245e4d1de30f09bb17efdfceb.tar.gz
nextcloud-server-22dcd3b6a691c7a245e4d1de30f09bb17efdfceb.zip
fix bug
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 a351572fcda..fb76c2de428 100644
--- a/cron.php
+++ b/cron.php
@@ -57,7 +57,7 @@ if( !OC_Config::getValue( 'installed', false )) {
register_shutdown_function('handleUnexpectedShutdown');
// Exit if background jobs are disabled!
-$appmode = OC_BackgroundJob::getType();
+$appmode = OC_BackgroundJob::getExecutionType();
if( $appmode == 'none' ) {
my_temporary_cron_class::$sent = true;
if( OC::$CLI ) {
@@ -76,7 +76,7 @@ if( OC::$CLI ) {
// We call ownCloud from the CLI (aka cron)
if( $appmode != 'cron' ) {
// Use cron in feature!
- OC_BackgroundJob::setType('cron' );
+ OC_BackgroundJob::setExecutionType('cron' );
}
// check if backgroundjobs is still running