Skip to content
Snippets Groups Projects
Commit 22dcd3b6 authored by Jakob Sack's avatar Jakob Sack
Browse files

fix bug

parent d0bbd941
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment