Skip to content

Commit

Permalink
User engine is not loaded at drush updb.
Browse files Browse the repository at this point in the history
This makes the command to crash on Drupal 7 with the following error:

Error: Call to undefined function drush_get_user_id() in /usr/share/drush/includes/batch.inc, line 72
  • Loading branch information
juampynr committed Nov 6, 2013
1 parent b381c28 commit 40dd55d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/batch.inc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class DrushBatchContext extends ArrayObject {
*/
function drush_backend_batch_process($command = 'batch-process', $args = array(), $options = array()) {
// Command line options to pass to the command.
drush_include_engine('drupal', 'user', drush_drupal_major_version());
$options['u'] = drush_get_user_id();

drush_include_engine('drupal', 'batch', drush_drupal_major_version());
Expand Down

0 comments on commit 40dd55d

Please sign in to comment.