Index: trunk/phase3/includes/api/ApiPageSet.php |
— | — | @@ -677,8 +677,8 @@ |
678 | 678 | global $wgContLang; |
679 | 679 | if ( $this->mConvertTitles && |
680 | 680 | count( $wgContLang->getVariants() ) > 1 && |
681 | | - $titleObj->getArticleID() == 0 ) { |
682 | | - // Language::findVariantLink will modify titleObj into |
| 681 | + !$titleObj->exists() ) { |
| 682 | + // Language::findVariantLink will modify titleObj into |
683 | 683 | // the canonical variant if possible |
684 | 684 | $wgContLang->findVariantLink( $title, $titleObj ); |
685 | 685 | $titleWasConverted = $unconvertedTitle !== $titleObj->getPrefixedText(); |