r98280 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98279‎ | r98280 | r98281 >
Date:22:51, 27 September 2011
Author:aaron
Status:ok
Tags:
Comment:
Fixed usage msg and added newine to output
Modified paths:
  • /trunk/tools/mwmultiversion/multiversion/getMWVersion (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/multiversion/getMWVersion
@@ -3,7 +3,8 @@
44 error_reporting( 0 );
55 // This script prints the MW version associated with a specified wikidb.
66 if ( count( $argv ) < 2 ) {
7 - die( "Usage: getMWVersion <dbname> \n" );
 7+ print "Usage: getMWVersion <dbname> \n";
 8+ exit( 1 );
89 }
910 /**
1011 * Prints the MW version associated with a specified wikidb (as listed e.g. in all.dblist).
@@ -23,4 +24,4 @@
2425 die( "Unable to open wikiversions.cdb.\n" );
2526 }
2627
27 -echo getWikiVersion( $argv[1] );
 28+echo getWikiVersion( $argv[1] ) . "\n";

Status & tagging log