diff options
author | Jakob Sack <mail@jakobsack.de> | 2012-08-09 00:46:50 +0200 |
---|---|---|
committer | Jakob Sack <mail@jakobsack.de> | 2012-08-09 00:46:50 +0200 |
commit | 4107273a790ec53880b70b944faa9db5b142c15b (patch) | |
tree | 484a40b2c7e657b6a75acc8a769aea52296efc2e /lib | |
parent | 088b3ea0bcd60ddc9d6854321e4ca502f874c5f9 (diff) | |
download | nextcloud-server-4107273a790ec53880b70b944faa9db5b142c15b.tar.gz nextcloud-server-4107273a790ec53880b70b944faa9db5b142c15b.zip |
fix license text
Diffstat (limited to 'lib')
-rw-r--r-- | lib/backgroundjob/regulartask.php | 2 | ||||
-rw-r--r-- | lib/backgroundjob/scheduledtask.php | 2 | ||||
-rw-r--r-- | lib/backgroundjob/worker.php | 16 |
3 files changed, 10 insertions, 10 deletions
diff --git a/lib/backgroundjob/regulartask.php b/lib/backgroundjob/regulartask.php index 5c416fcdb0e..53bd4eb5e9b 100644 --- a/lib/backgroundjob/regulartask.php +++ b/lib/backgroundjob/regulartask.php @@ -1,6 +1,6 @@ <?php /** -* ownCloud - Background Job +* ownCloud * * @author Jakob Sack * @copyright 2012 Jakob Sack owncloud@jakobsack.de diff --git a/lib/backgroundjob/scheduledtask.php b/lib/backgroundjob/scheduledtask.php index 5a2166175c7..47f332a204a 100644 --- a/lib/backgroundjob/scheduledtask.php +++ b/lib/backgroundjob/scheduledtask.php @@ -1,6 +1,6 @@ <?php /** -* ownCloud - Background Job +* ownCloud * * @author Jakob Sack * @copyright 2012 Jakob Sack owncloud@jakobsack.de diff --git a/lib/backgroundjob/worker.php b/lib/backgroundjob/worker.php index 9709882978b..23757529ad8 100644 --- a/lib/backgroundjob/worker.php +++ b/lib/backgroundjob/worker.php @@ -1,6 +1,6 @@ <?php /** -* ownCloud - Background Job +* ownCloud * * @author Jakob Sack * @copyright 2012 Jakob Sack owncloud@jakobsack.de @@ -59,12 +59,12 @@ class OC_BackgroundJob_Worker{ * with the next step. This method should be used by webcron and ajax * services. */ - public static function doWebStep(){ - $laststep = OC_Appconfig::getValue( 'core', 'backgroundjobs_step', 'regular_tasks' ); + public static function doNextStep(){ + $laststep = OC_Appconfig::getValue( 'core', 'backgroundjob_step', 'regular_tasks' ); if( $laststep == 'regular_tasks' ){ // get last app - $lasttask = OC_Appconfig::getValue( 'core', 'backgroundjobs_task', '' ); + $lasttask = OC_Appconfig::getValue( 'core', 'backgroundjob_task', '' ); // What's the next step? $regular_tasks = OC_BackgroundJob_RegularTask::all(); @@ -74,7 +74,7 @@ class OC_BackgroundJob_Worker{ // search for next background job foreach( $regular_tasks as $key => $value ){ if( strcmp( $lasttask, $key ) > 0 ){ - OC_Appconfig::getValue( 'core', 'backgroundjobs_task', $key ); + OC_Appconfig::getValue( 'core', 'backgroundjob_task', $key ); $done = true; call_user_func( $value ); break; @@ -83,7 +83,7 @@ class OC_BackgroundJob_Worker{ if( $done == false ){ // Next time load scheduled tasks - OC_Appconfig::setValue( 'core', 'backgroundjobs_step', 'scheduled_tasks' ); + OC_Appconfig::setValue( 'core', 'backgroundjob_step', 'scheduled_tasks' ); } } else{ @@ -99,8 +99,8 @@ class OC_BackgroundJob_Worker{ } else{ // Next time load scheduled tasks - OC_Appconfig::setValue( 'core', 'backgroundjobs_step', 'regular_tasks' ); - OC_Appconfig::setValue( 'core', 'backgroundjobs_task', '' ); + OC_Appconfig::setValue( 'core', 'backgroundjob_step', 'regular_tasks' ); + OC_Appconfig::setValue( 'core', 'backgroundjob_task', '' ); } } |