diff options
author | Jakob Sack <mail@jakobsack.de> | 2012-08-12 12:14:27 +0200 |
---|---|---|
committer | Jakob Sack <mail@jakobsack.de> | 2012-08-12 12:14:27 +0200 |
commit | 4d3d4522f94edf912b469540d533963901f61676 (patch) | |
tree | a90de0de8a867a388b1db63cc3dfc370801c7147 /lib | |
parent | deef1f73db14fb988b35439ea185a34b31260af9 (diff) | |
download | nextcloud-server-4d3d4522f94edf912b469540d533963901f61676.tar.gz nextcloud-server-4d3d4522f94edf912b469540d533963901f61676.zip |
Backgroundjobs: Fix wrong var names
Diffstat (limited to 'lib')
-rw-r--r-- | lib/backgroundjob/queuedtask.php | 2 | ||||
-rw-r--r-- | lib/public/backgroundjob.php | 4 |
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 ); } /** |