r51898 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51897‎ | r51898 | r51899 >
Date:13:06, 15 June 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Quick fix for duplicated magic words export
Modified paths:
  • /trunk/extensions/Translate/groups/ComplexMessages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/ComplexMessages.php
@@ -361,6 +361,9 @@
362362
363363 // Then get the data we really want
364364 $val = $this->val( $group, $from, $key );
 365+ // Remove duplicated entries, causes problems with magic words
 366+ // TODO: prevent or fix silently on save already
 367+ $val = array_unique( $val /*FIXME:SORT_REGULAR*/ );
365368
366369 $normalized = array_map( array( $this, 'normalize' ), $val );
367370 if ( $this->elementsInArray ) {

Status & tagging log