Followup to r69587: forgot to hit Save *facepalm*
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 20 Jul 2010 09:26:56 +0000 (09:26 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 20 Jul 2010 09:26:56 +0000 (09:26 +0000)
includes/api/ApiPageSet.php

index ada8543..a24a75f 100644 (file)
@@ -677,8 +677,8 @@ class ApiPageSet extends ApiQueryBase {
                                global $wgContLang;
                                if ( $this->mConvertTitles &&
                                                count( $wgContLang->getVariants() ) > 1  &&
-                                               $titleObj->getArticleID() == 0 ) {
-                                       // Language::findVariantLink will modify titleObj into 
+                                               !$titleObj->exists() ) {
+                                       // Language::findVariantLink will modify titleObj into
                                        // the canonical variant if possible
                                        $wgContLang->findVariantLink( $title, $titleObj );
                                        $titleWasConverted = $unconvertedTitle !== $titleObj->getPrefixedText();