r51227 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51226‎ | r51227 | r51228 >
Date:13:15, 31 May 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
One more fix to alias export
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/scripts/alias-export.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/alias-export.php
@@ -4,7 +4,7 @@
55 *
66 * @author Niklas Laxstrom
77 *
8 - * @copyright Copyright © 2008, Niklas Laxström
 8+ * @copyright Copyright © 2008-2009, Niklas Laxström
99 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
1010 * @file
1111 */
Index: trunk/extensions/Translate/MessageGroups.php
@@ -383,7 +383,7 @@
384384
385385 function fill( MessageCollection $messages ) {
386386 $cache = $this->load( $messages->code );
387 - foreach ( $messages->keys() as $key ) {
 387+ foreach ( array_keys($messages->keys()) as $key ) {
388388 if ( isset( $cache[$key] ) ) {
389389 if ( is_array( $cache[$key] ) ) {
390390 $messages[$key]->setInfile( implode( ',', $cache[$key] ) );

Status & tagging log