r10644 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10643‎ | r10644 | r10645 >
Date:01:53, 20 August 2005
Author:timstarling
Status:old
Tags:
Comment:
live improvements by brion
Modified paths:
  • /branches/REL1_5/phase3/maintenance/rebuildInterwiki.inc (modified) (history)

Diff [purge]

Index: branches/REL1_5/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" );

Status & tagging log