Index: trunk/tools/mwmultiversion/multiversion/activeMWVersions |
— | — | @@ -13,7 +13,8 @@ |
14 | 14 | */
|
15 | 15 | function getActiveWikiVersions() {
|
16 | 16 | global $argv;
|
17 | | - $options = array_shift( $argv ); // this file
|
| 17 | + $options = $argv; // copy
|
| 18 | + array_shift( $options ); // first item is this file
|
18 | 19 |
|
19 | 20 | if ( in_array( '--home', $options ) ) {
|
20 | 21 | $path = '/home/wikipedia/common/wikiversions.dat';
|
— | — | @@ -43,4 +44,4 @@ |
44 | 45 | return implode( ' ', $result );
|
45 | 46 | }
|
46 | 47 |
|
47 | | -echo getActiveWikiVersions();
|
| 48 | +echo getActiveWikiVersions() . "\n";
|