Skip to content

Commit

Permalink
Backgroundjobs: Fix wrong var names
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobsack committed Aug 12, 2012
1 parent deef1f7 commit 4d3d452
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/backgroundjob/queuedtask.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function whereAppIs( $app ){
* @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 ));

Expand Down
4 changes: 2 additions & 2 deletions lib/public/backgroundjob.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ public static function queuedTaskWhereAppIs( $app ){
* @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 );
}

/**
Expand Down

0 comments on commit 4d3d452

Please sign in to comment.