Index: trunk/phase3/maintenance/rebuildInterwiki.inc |
— | — | @@ -49,6 +49,7 @@ |
50 | 50 | 'textbookwiki' => 'wikibooks.org', |
51 | 51 | 'sep11wiki' => 'sep11.wikipedia.org', |
52 | 52 | 'metawiki' => 'meta.wikimedia.org', |
| 53 | + 'commonswiki' => 'commons.wikimedia.org', |
53 | 54 | ); |
54 | 55 | |
55 | 56 | $extraLinks = array( |
— | — | @@ -77,7 +78,8 @@ |
78 | 79 | } |
79 | 80 | |
80 | 81 | # Extract the intermap from meta |
81 | | - $lines = file( 'http://meta.wikimedia.org/w/index.php?title=Interwiki_map&action=raw' ); |
| 82 | + $intermap = wfGetHTTP( 'http://meta.wikimedia.org/w/index.php?title=Interwiki_map&action=raw' ); |
| 83 | + $lines = array_map( 'trim', explode( "\n", trim( $intermap ) ) ); |
82 | 84 | |
83 | 85 | if ( !$lines ) { |
84 | 86 | die( "m:Interwiki_map not found" ); |
Index: trunk/phase3/maintenance/update.php |
— | — | @@ -8,6 +8,7 @@ |
9 | 9 | */ |
10 | 10 | |
11 | 11 | /** */ |
| 12 | +$wgUseMasterForMaintenance = true; |
12 | 13 | $options = array( 'quick' ); |
13 | 14 | require_once( "commandLine.inc" ); |
14 | 15 | require_once( "updaters.inc" ); |
Index: trunk/phase3/maintenance/dumpBackup.php |
— | — | @@ -22,6 +22,8 @@ |
23 | 23 | * @subpackage SpecialPage |
24 | 24 | */ |
25 | 25 | |
| 26 | +$originalDir = getcwd(); |
| 27 | + |
26 | 28 | $optionsWithArgs = array( 'server', 'pagelist' ); |
27 | 29 | |
28 | 30 | require_once( 'commandLine.inc' ); |
— | — | @@ -141,7 +143,7 @@ |
142 | 144 | |
143 | 145 | if ( isset( $options['pagelist'] ) ) { |
144 | 146 | $olddir = getcwd(); |
145 | | - chdir( 'maintenance' ); |
| 147 | + chdir( $originalDir ); |
146 | 148 | $pages = file( $options['pagelist'] ); |
147 | 149 | chdir( $olddir ); |
148 | 150 | if ( $pages === false ) { |