r93033 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93032‎ | r93033 | r93034 >
Date:01:00, 25 July 2011
Author:aaron
Status:ok
Tags:
Comment:
Follow-up r93032: fixed use of $options var. Restored newline in output.
Modified paths:
  • /trunk/tools/mwmultiversion/multiversion/activeMWVersions (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/multiversion/activeMWVersions
@@ -13,7 +13,8 @@
1414 */
1515 function getActiveWikiVersions() {
1616 global $argv;
17 - $options = array_shift( $argv ); // this file
 17+ $options = $argv; // copy
 18+ array_shift( $options ); // first item is this file
1819
1920 if ( in_array( '--home', $options ) ) {
2021 $path = '/home/wikipedia/common/wikiversions.dat';
@@ -43,4 +44,4 @@
4445 return implode( ' ', $result );
4546 }
4647
47 -echo getActiveWikiVersions();
 48+echo getActiveWikiVersions() . "\n";

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93032* Ported mwversionsinuse code to activeMWVersions PHP script file. mwversions...aaron00:04, 25 July 2011

Status & tagging log