r110490 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110489‎ | r110490 | r110491 >
Date:15:52, 1 February 2012
Author:reedy
Status:ok
Tags:
Comment:
Merge quietening part of r110487
Modified paths:
  • /branches/wmf/1.18wmf1/maintenance/dumpInterwiki.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/maintenance/dumpInterwiki.php
@@ -240,7 +240,12 @@
241241 array_key_exists( $entry['iw_prefix'], $this->prefixRewrites[$source] ) ) {
242242 $entry['iw_prefix'] = $this->prefixRewrites[$source][$entry['iw_prefix']];
243243 }
244 -
 244+ if ( !array_key_exists( "iw_local", $entry ) ) {
 245+ $entry["iw_local"] = 0;
 246+ }
 247+ if ( !array_key_exists( "iw_url", $entry ) ) {
 248+ $entry["iw_url"] = '';
 249+ }
245250 if ( $this->dbFile ) {
246251 $this->dbFile->set( "{$source}:{$entry['iw_prefix']}", trim( "{$entry['iw_local']} {$entry['iw_url']}" ) );
247252 } else {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r110487Followup r110454, quieten script by setting default values for non set iw_url...reedy15:46, 1 February 2012

Status & tagging log