Browse Source

fix bug

tags/v5.0.0alpha1
Jakob Sack 11 years ago
parent
commit
22dcd3b6a6
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      cron.php

+ 2
- 2
cron.php View File

@@ -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

Loading…
Cancel
Save