aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/backgroundjob/queuedtask.php2
-rw-r--r--lib/public/backgroundjob.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/backgroundjob/queuedtask.php b/lib/backgroundjob/queuedtask.php
index 941af1c647b..68ba97c1e39 100644
--- a/lib/backgroundjob/queuedtask.php
+++ b/lib/backgroundjob/queuedtask.php
@@ -81,7 +81,7 @@ class OC_BackgroundJob_QueuedTask{
* @param $parameters all useful data as text
* @return id of task
*/
- public static function add( $task, $klass, $method, $parameters ){
+ public static function add( $app, $klass, $method, $parameters ){
$stmt = OC_DB::prepare( 'INSERT INTO *PREFIX*queuedtasks (app, klass, method, parameters) VALUES(?,?,?,?)' );
$result = $stmt->execute(array($app, $klass, $method, $parameters ));
diff --git a/lib/public/backgroundjob.php b/lib/public/backgroundjob.php
index 72f4557eb1a..834bebb5c3c 100644
--- a/lib/public/backgroundjob.php
+++ b/lib/public/backgroundjob.php
@@ -100,8 +100,8 @@ class BackgroundJob {
* @param $parameters all useful data as text
* @return id of task
*/
- public static function addQueuedTask( $task, $klass, $method, $parameters ){
- return \OC_BackgroundJob_QueuedTask::add( $task, $klass, $method, $parameters );
+ public static function addQueuedTask( $app, $klass, $method, $parameters ){
+ return \OC_BackgroundJob_QueuedTask::add( $app, $klass, $method, $parameters );
}
/**