r59478 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59477‎ | r59478 | r59479 >
Date:00:18, 27 November 2009
Author:tstarling
Status:deferred
Tags:
Comment:
Don't include the old ExtensionMessages.php when you're building a new one. Otherwise renames break.
Modified paths:
  • /trunk/phase3/maintenance/mergeMessageFileList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/mergeMessageFileList.php
@@ -1,5 +1,8 @@
22 <?php
33
 4+# Start from scratch
 5+define( 'MW_NO_EXTENSION_MESSAGES', 1 );
 6+
47 require_once( dirname( __FILE__ ).'/Maintenance.php' );
58 $maintClass = 'MergeMessageFileList';
69 $mmfl = false;
@@ -37,12 +40,14 @@
3841 continue;
3942 }
4043 $fileName = str_replace( '$IP', $IP, $fileName );
 44+ fwrite( STDERR, "Loading data from $fileName\n" );
4145 include_once( $fileName );
4246 }
4347 fwrite( STDERR, "\n" );
4448 $s =
4549 "<" . "?php\n" .
4650 "## This file is generated by mergeMessageFileList.php. Do not edit it directly.\n\n" .
 51+ "if ( defined( 'MW_NO_EXTENSION_MESSAGES' ) ) return;\n\n" .
4752 '$wgExtensionMessagesFiles = ' . var_export( $wgExtensionMessagesFiles, true ) . ";\n\n" .
4853 '$wgExtensionAliasesFiles = ' . var_export( $wgExtensionAliasesFiles, true ) . ";\n";
4954

Follow-up revisions

RevisionCommit summaryAuthorDate
r59479Merged r59478, mergeMessageFileList.php extension rename fixtstarling00:24, 27 November 2009

Status & tagging log