From: Tim Starling Date: Sun, 13 Jun 2004 04:30:15 +0000 (+0000) Subject: Printing output to stdout rather than saving, adding header with version string so... X-Git-Tag: 1.5.0alpha1~2866 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=aad6ec6c244884e743b04dc9d24e8104f4256ee0;p=lhc%2Fweb%2Fwiklou.git Printing output to stdout rather than saving, adding header with version string so now the output is a proper forwards compatible file format --- diff --git a/maintenance/dumpMessages.php b/maintenance/dumpMessages.php index e4c54601d0..1983f7cb71 100644 --- a/maintenance/dumpMessages.php +++ b/maintenance/dumpMessages.php @@ -6,12 +6,7 @@ foreach ( $wgAllMessagesEn as $key => $englishValue ) { $messages[$key] = wfMsg( $key ); } - -if ( count( $argv ) >= 2 ) { - $res = fopen( $argv[2] ); - fwrite( $res, serialize( $messages ) ); -} else { - print serialize( $messages ); -} +print "MediaWiki $wgVersion language file\n"; +print serialize( $messages ); ?>