From 1caa70df2a13a243a715c1443d47ccdac5991f29 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 20 Jul 2010 09:26:56 +0000 Subject: [PATCH] Followup to r69587: forgot to hit Save *facepalm* --- includes/api/ApiPageSet.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index ada85432d4..a24a75f2b7 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -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(); -- 2.20.1