From: Roan Kattouw Date: Tue, 20 Jul 2010 09:26:56 +0000 (+0000) Subject: Followup to r69587: forgot to hit Save *facepalm* X-Git-Tag: 1.31.0-rc.0~36065 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=1caa70df2a13a243a715c1443d47ccdac5991f29;p=lhc%2Fweb%2Fwiklou.git Followup to r69587: forgot to hit Save *facepalm* --- 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();