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

Backgroundjobs: Fix wrong var names

parent deef1f73
No related branches found
No related tags found
No related merge requests found
......@@ -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 ));
......
......@@ -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 );
}
/**
......
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