r69585 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69584‎ | r69585 | r69586 >
Date:08:47, 20 July 2010
Author:peter17
Status:ok
Tags:
Comment:
Solving an issue in r69542
Modified paths:
  • /trunk/phase3/includes/Interwiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Interwiki.php
@@ -170,14 +170,14 @@
171171 * @return Boolean: whether everything was there
172172 */
173173 protected static function loadFromArray( $mc ) {
174 - if( isset( $mc['iw_url'] ) && isset( $mc['iw_api'] ) && isset( $mc['iw_wikiid'] )
175 - && isset( $mc['iw_local'] ) && isset( $mc['iw_trans'] ) ) {
 174+ if( isset( $mc['iw_url'] ) && isset( $mc['iw_local'] ) && isset( $mc['iw_trans'] ) ) {
176175 $iw = new Interwiki();
177176 $iw->mURL = $mc['iw_url'];
178 - $iw->mAPI = $mc['iw_api'];
179 - $iw->mWikiID = $mc['iw_wikiid'];
180177 $iw->mLocal = $mc['iw_local'];
181178 $iw->mTrans = $mc['iw_trans'];
 179+ $iw->mAPI = isset( $mc['iw_api'] ) ? $mc['iw_api'] : '';
 180+ $iw->mWikiID = isset( $mc['iw_wikiid'] ) ? $mc['iw_wikiid'] : '';
 181+
182182 return $iw;
183183 }
184184 return false;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r69542Add iw_api and iw_wikiid fields to the interwiki table, plus rudimentary supp...catrope11:55, 19 July 2010

Status & tagging log