Index: branches/wmf/1.18wmf1/maintenance/dumpInterwiki.php |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | $lang = $matches[1]; |
189 | 189 | } |
190 | 190 | |
191 | | - $this->makeLink( array( 'iw_prefix' => $db, 'iw_url' => $site->suffix, 'iw_local' => 1 ), "__sites" ); |
| 191 | + $this->makeLink( array( 'iw_prefix' => $db, 'iw_url' => $site->suffix ), "__sites" ); |
192 | 192 | if ( !$site ) { |
193 | 193 | $this->error( "Invalid database $db\n" ); |
194 | 194 | continue; |
— | — | @@ -215,8 +215,6 @@ |
216 | 216 | } |
217 | 217 | } |
218 | 218 | |
219 | | - # ------------------------------------------------------------------------------------------ |
220 | | - |
221 | 219 | # Executes part of an INSERT statement, corresponding to all interlanguage links to a particular site |
222 | 220 | function makeLanguageLinks( &$site, $source ) { |
223 | 221 | # Actual languages with their own databases |
— | — | @@ -242,12 +240,7 @@ |
243 | 241 | array_key_exists( $entry['iw_prefix'], $this->prefixRewrites[$source] ) ) { |
244 | 242 | $entry['iw_prefix'] = $this->prefixRewrites[$source][$entry['iw_prefix']]; |
245 | 243 | } |
246 | | - if ( !array_key_exists( "iw_local", $entry ) ) { |
247 | | - $entry["iw_local"] = 0; |
248 | | - } |
249 | | - if ( !array_key_exists( "iw_url", $entry ) ) { |
250 | | - return; |
251 | | - } |
| 244 | + |
252 | 245 | if ( $this->dbFile ) { |
253 | 246 | $this->dbFile->set( "{$source}:{$entry['iw_prefix']}", trim( "{$entry['iw_local']} {$entry['iw_url']}" ) ); |
254 | 247 | } else { |