Index: branches/iwtransclusion/phase3v3/includes/LinksUpdate.php |
— | — | @@ -377,19 +377,19 @@ |
378 | 378 | if ( $where ) { |
379 | 379 | $this->mDb->delete( $table, $where, __METHOD__ ); |
380 | 380 | } |
| 381 | + if ( isset( $insertions['globaltemplatelinks'] ) ) { |
| 382 | + $this->mDb->insert( 'globaltemplatelinks', $insertions['globaltemplatelinks'], __METHOD__, 'IGNORE' ); |
| 383 | + unset( $insertions['globaltemplatelinks'] ); |
| 384 | + } |
| 385 | + if ( isset( $insertions['globalnamespaces'] ) ) { |
| 386 | + $this->mDb->insert( 'globalnamespaces', $insertions['globalnamespaces'], __METHOD__, 'IGNORE' ); |
| 387 | + unset( $insertions['globalnamespaces'] ); |
| 388 | + } |
| 389 | + if ( isset( $insertions['globalinterwiki'] ) ) { |
| 390 | + $this->mDb->insert( 'globalinterwiki', $insertions['globalinterwiki'], __METHOD__, 'IGNORE' ); |
| 391 | + unset( $insertions['globalinterwiki'] ); |
| 392 | + } |
381 | 393 | if ( count( $insertions ) ) { |
382 | | - if ( isset( $insertions['globaltemplatelinks'] ) ) { |
383 | | - $this->mDb->insert( 'globaltemplatelinks', $insertions['globaltemplatelinks'], __METHOD__, 'IGNORE' ); |
384 | | - unset( $insertions['globaltemplatelinks'] ); |
385 | | - } |
386 | | - if ( isset( $insertions['globalnamespaces'] ) ) { |
387 | | - $this->mDb->insert( 'globalnamespaces', $insertions['globalnamespaces'], __METHOD__, 'IGNORE' ); |
388 | | - unset( $insertions['globalnamespaces'] ); |
389 | | - } |
390 | | - if ( isset( $insertions['globalinterwiki'] ) ) { |
391 | | - $this->mDb->insert( 'globalinterwiki', $insertions['globalinterwiki'], __METHOD__, 'IGNORE' ); |
392 | | - unset( $insertions['globalinterwiki'] ); |
393 | | - } |
394 | 394 | $this->mDb->insert( $table, $insertions, __METHOD__, 'IGNORE' ); |
395 | 395 | } |
396 | 396 | } |