summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-08-09 10:40:39 +0200
committerJakob Sack <mail@jakobsack.de>2012-08-09 10:40:39 +0200
commit889f0a1c6df51c5b6495445809143940ad17c327 (patch)
tree781c669103ec831eee24bcceee91afe2c32c0e91 /lib
parent37ee88aa6d6470bdb0e500fc94fe75042453fbb7 (diff)
downloadnextcloud-server-889f0a1c6df51c5b6495445809143940ad17c327.tar.gz
nextcloud-server-889f0a1c6df51c5b6495445809143940ad17c327.zip
rename appconfig keys for backgroundjobs
Diffstat (limited to 'lib')
-rw-r--r--lib/backgroundjob/worker.php12
-rw-r--r--lib/base.php2
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/backgroundjob/worker.php b/lib/backgroundjob/worker.php
index 7514a16b696..799fa5306c6 100644
--- a/lib/backgroundjob/worker.php
+++ b/lib/backgroundjob/worker.php
@@ -60,11 +60,11 @@ class OC_BackgroundJob_Worker{
* services.
*/
public static function doNextStep(){
- $laststep = OC_Appconfig::getValue( 'core', 'backgroundjob_step', 'regular_tasks' );
+ $laststep = OC_Appconfig::getValue( 'core', 'backgroundjobs_step', 'regular_tasks' );
if( $laststep == 'regular_tasks' ){
// get last app
- $lasttask = OC_Appconfig::getValue( 'core', 'backgroundjob_task', '' );
+ $lasttask = OC_Appconfig::getValue( 'core', 'backgroundjobs_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', 'backgroundjob_task', $key );
+ OC_Appconfig::getValue( 'core', 'backgroundjobs_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', 'backgroundjob_step', 'scheduled_tasks' );
+ OC_Appconfig::setValue( 'core', 'backgroundjobs_step', 'scheduled_tasks' );
}
}
else{
@@ -99,8 +99,8 @@ class OC_BackgroundJob_Worker{
}
else{
// Next time load scheduled tasks
- OC_Appconfig::setValue( 'core', 'backgroundjob_step', 'regular_tasks' );
- OC_Appconfig::setValue( 'core', 'backgroundjob_task', '' );
+ OC_Appconfig::setValue( 'core', 'backgroundjobs_step', 'regular_tasks' );
+ OC_Appconfig::setValue( 'core', 'backgroundjobs_task', '' );
}
}
diff --git a/lib/base.php b/lib/base.php
index 090d05cdbae..ee80294dd92 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -234,7 +234,7 @@ class OC{
//OC_Util::addScript( "multiselect" );
OC_Util::addScript('search','result');
- if( OC_Appconfig::getValue( 'core', 'backgroundjob_mode', 'ajax' ) == 'ajax' ){
+ if( OC_Appconfig::getValue( 'core', 'backgroundjobs_mode', 'ajax' ) == 'ajax' ){
OC_Util::addScript( 'backgroundjobs' );
}