Skip to content

Commit

Permalink
Remove stray argument and use assoc array for options in _drush_backe…
Browse files Browse the repository at this point in the history
…nd_batch_process() for D7/D8.
  • Loading branch information
weitzman committed Jan 14, 2016
1 parent eca21ec commit 30f88b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/core/drupal/batch.inc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function _drush_backend_batch_process($command = 'batch-process', $args, $option
global $user;

while (!$finished) {
$data = drush_invoke_process('@self', $command, $args, array($batch['id'], '-u', drush_user_get_class()->getCurrentUserAsSingle()->id()));
$data = drush_invoke_process('@self', $command, $args, array('user' => drush_user_get_class()->getCurrentUserAsSingle()->id()));

$finished = drush_get_error() || !$data || (isset($data['context']['drush_batch_process_finished']) && $data['context']['drush_batch_process_finished'] == TRUE);
}
Expand Down

0 comments on commit 30f88b2

Please sign in to comment.