r68275 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68274‎ | r68275 | r68276 >
Date:16:59, 19 June 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Allow underscores in group names
Modified paths:
  • /trunk/extensions/Translate/scripts/groupStatistics.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/groupStatistics.php
@@ -285,6 +285,8 @@
286286
287287 // Get list of valid groups
288288 foreach ( $reqGroups as $id ) {
 289+ // Page translation group ids use spaces which are not nice on command line
 290+ $id = str_replace( '_', ' ', $id );
289291 if ( isset( $allGroups[$id] ) ) {
290292 $groups[$id] = $allGroups[$id];
291293 } else {

Status & tagging log