r102558 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102557‎ | r102558 | r102559 >
Date:18:56, 9 November 2011
Author:catrope
Status:ok
Tags:
Comment:
1.18wmf1: MFT r102545
Modified paths:
  • /branches/wmf/1.18wmf1/maintenance/dumpInterwiki.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/maintenance/dumpInterwiki.php
@@ -83,7 +83,7 @@
8484
8585 # Site overrides for wikis whose DB names end in 'wiki' but that really belong to another site
8686 $siteOverrides = array(
87 - 'sourceswiki' => 'wikisource',
 87+ 'sourceswiki' => array( 'wikisource', 'en' ),
8888 );
8989
9090 # Extra interwiki links that can't be in the intermap for some reason
@@ -174,7 +174,8 @@
175175 # Find out which site this DB belongs to
176176 $site = false;
177177 if ( isset( $siteOverrides[$db] ) ) {
178 - $site = $sites[$siteOverrides[$db]];
 178+ list( $site, $lang ) = $siteOverrides[$db];
 179+ $site = $sites[$site];
179180 } else {
180181 foreach ( $sites as $candidateSite ) {
181182 $suffix = $candidateSite->suffix;
@@ -183,6 +184,7 @@
184185 break;
185186 }
186187 }
 188+ $lang = $matches[1];
187189 }
188190
189191 $this->makeLink( array( 'iw_prefix' => $db, 'iw_url' => $site->suffix ), "__sites" );
@@ -190,7 +192,6 @@
191193 $this->error( "Invalid database $db\n" );
192194 continue;
193195 }
194 - $lang = $matches[1];
195196
196197 # Lateral links
197198 foreach ( $sites as $targetSite ) {
Property changes on: branches/wmf/1.18wmf1/maintenance/dumpInterwiki.php
___________________________________________________________________
Modified: svn:mergeinfo
198199 Merged /trunk/extensions/WikimediaMaintenance/dumpInterwiki.php:r102545

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r1023891.18wmf1: MFT r102388catrope11:07, 8 November 2011
r102545Followup r102388: fix regression where on sourceswiki (and any other sites in...catrope17:38, 9 November 2011

Status & tagging log