r51107 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51106‎ | r51107 | r51108 >
Date:10:56, 28 May 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Fix some mistyped variables
Modified paths:
  • /trunk/extensions/Translate/scripts/messageDust.php (modified) (history)
  • /trunk/extensions/Translate/scripts/populateFuzzy.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/populateFuzzy.php
@@ -37,7 +37,7 @@
3838 $limit = max(1000,intval($count/100));
3939 $offset = 0;
4040 while (true) {
41 - $insert = array();
 41+ $inserts = array();
4242 echo "$offset/$count\n";
4343 $options = array( 'LIMIT' => $limit, 'OFFSET' => $offset );
4444 $res = $db->select( $tables, $fields, $conds, __METHOD__, $options );
Index: trunk/extensions/Translate/scripts/messageDust.php
@@ -27,14 +27,14 @@
2828 $mg = TranslateUtils::messageKeyToGroup( $row->page_namespace, $key );
2929 $ns = $wgContLang->getNsText( $row->page_namespace );
3030 if ( is_null($mg) ) {
31 - $keys["$ns:$pieces"][] = $code;
 31+ $keys["$ns:$key"][] = $code;
3232 $owner = 'xx-unknown';
3333 } else {
3434 $owner = $mg;
3535 }
3636
3737 if ( !isset($codes[$code]) ) {
38 - $invalid[$code][] = "[[$ns:$pieces/$code]]";
 38+ $invalid[$code][] = "[[$ns:$key/$code]]";
3939 }
4040
4141 if ( !isset($owners[$owner]) ) $owners[$owner] = 0;

Status & tagging log