Skip to content

Commit

Permalink
Fix drush-ops#2715 locale-update log message duplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored and mikeker committed Aug 4, 2017
1 parent 7e4e523 commit 7e30f43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Commands/core/LocaleCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public function update($options = ['langcodes' => '']) {
// @todo Not selecting any language code in the user interface results in
// all translations being updated, so we mimick that behavior here.
}

// Deduplicate the list of langcodes since each project may have added the
// same language several times.
$langcodes = array_unique($langcodes);

// @todo Restricting by projects is not possible in the user interface and is
// broken when attempting to do it in a hook_form_alter() implementation so
// we do not allow for it here either.
Expand Down

0 comments on commit 7e30f43

Please sign in to comment.