calling job with data array, plus all regular job data, like eg. next (time job was supposted to run)

This commit is contained in:
Ralf Becker 2010-09-06 14:07:23 +00:00
parent 8ef9570d93
commit 65be94b6ce

View File

@ -426,7 +426,7 @@ class asyncservice
list($app) = strpos($job['method'],'::') !== false ? explode('_',$job['method']) :
explode('.',$job['method']);
translation::add_app($app);
ExecMethod($job['method'],$job['data']);
ExecMethod($job['method'],$job['data']+array_diff_key($job,array('data' => false)));
// re-read job, in case it had been updated or even deleted in the method
$updated = $this->read($id);