r10645 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10644‎ | r10645 | r10646 >
Date:01:57, 20 August 2005
Author:timstarling
Status:old
Tags:
Comment:
forward porting from REL1_5
Modified paths:
  • /trunk/phase3/maintenance/dumpBackup.php (modified) (history)
  • /trunk/phase3/maintenance/rebuildInterwiki.inc (modified) (history)
  • /trunk/phase3/maintenance/update.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/rebuildInterwiki.inc
@@ -49,6 +49,7 @@
5050 'textbookwiki' => 'wikibooks.org',
5151 'sep11wiki' => 'sep11.wikipedia.org',
5252 'metawiki' => 'meta.wikimedia.org',
 53+ 'commonswiki' => 'commons.wikimedia.org',
5354 );
5455
5556 $extraLinks = array(
@@ -77,7 +78,8 @@
7879 }
7980
8081 # 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 ) ) );
8284
8385 if ( !$lines ) {
8486 die( "m:Interwiki_map not found" );
Index: trunk/phase3/maintenance/update.php
@@ -8,6 +8,7 @@
99 */
1010
1111 /** */
 12+$wgUseMasterForMaintenance = true;
1213 $options = array( 'quick' );
1314 require_once( "commandLine.inc" );
1415 require_once( "updaters.inc" );
Index: trunk/phase3/maintenance/dumpBackup.php
@@ -22,6 +22,8 @@
2323 * @subpackage SpecialPage
2424 */
2525
 26+$originalDir = getcwd();
 27+
2628 $optionsWithArgs = array( 'server', 'pagelist' );
2729
2830 require_once( 'commandLine.inc' );
@@ -141,7 +143,7 @@
142144
143145 if ( isset( $options['pagelist'] ) ) {
144146 $olddir = getcwd();
145 - chdir( 'maintenance' );
 147+ chdir( $originalDir );
146148 $pages = file( $options['pagelist'] );
147149 chdir( $olddir );
148150 if ( $pages === false ) {

Status & tagging log