Index: trunk/phase3/languages/LanguageConverter.php |
— | — | @@ -547,6 +547,11 @@ |
548 | 548 | * @public |
549 | 549 | */ |
550 | 550 | function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { |
| 551 | + # If the article has already existed, there is no need to |
| 552 | + # check it again, otherwise it may cause a fault. |
| 553 | + if ( $nt->exists() ) |
| 554 | + return; |
| 555 | + |
551 | 556 | global $wgDisableLangConversion, $wgDisableTitleConversion, $wgRequest, $wgUser; |
552 | 557 | $isredir = $wgRequest->getText( 'redirect', 'yes' ); |
553 | 558 | $action = $wgRequest->getText( 'action' ); |
— | — | @@ -560,7 +565,7 @@ |
561 | 566 | || $action == 'submit' || $linkconvert == 'no' || $wgUser->getOption('noconvertlink') == 1 ) ) ) |
562 | 567 | return; |
563 | 568 | |
564 | | - if(is_object($nt)) |
| 569 | + if ( is_object( $nt ) ) |
565 | 570 | $ns = $nt->getNamespace(); |
566 | 571 | |
567 | 572 | $variants = $this->autoConvertToAllVariants($link); |