r102495 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102494‎ | r102495 | r102496 >
Date:08:21, 9 November 2011
Author:kaldari
Status:ok
Tags:
Comment:
follow-up to r102494 - a little bit more clean-up
Modified paths:
  • /trunk/extensions/cldr/rebuild.php (modified) (history)

Diff [purge]

Index: trunk/extensions/cldr/rebuild.php
@@ -60,10 +60,10 @@
6161
6262 // If the file exists, parse it, otherwise display an error
6363 if ( file_exists( $input ) ) {
64 - $en = Language::factory('en');
6564 $p = new CLDRParser();
6665 $p->parse( $input, "$OUTPUT/" . LanguageNames::getFileName( getRealCode ( $code ) ) );
67 - while ($p->getAlias() != false) {
 66+ // If the previously parsed file points to an alias, parse the alias
 67+ while ( $p->getAlias() != false ) {
6868 $codeCLDR = $p->getAlias();
6969 $input = "$DATA/$codeCLDR.xml";
7070 echo "Alias $codeCLDR found for $code\n";

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r102494style clean-up and code deobfuscationkaldari07:56, 9 November 2011

Status & tagging log