From: Zheng Zhu Date: Sat, 12 Feb 2005 02:56:58 +0000 (+0000) Subject: (for zh) Search for variant links even when conversion is turned off. X-Git-Tag: 1.5.0alpha1~738 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=30ab4b2f98e1d630cc1b03ac802f845c9294d051;p=lhc%2Fweb%2Fwiklou.git (for zh) Search for variant links even when conversion is turned off. --- diff --git a/languages/LanguageZh.php b/languages/LanguageZh.php index a5b1315e35..7c2cab1fa1 100644 --- a/languages/LanguageZh.php +++ b/languages/LanguageZh.php @@ -432,7 +432,7 @@ class LanguageZh extends LanguageZh_cn { static $cache=array(); global $wgDisableLangConversion; $pref = $this->getPreferredVariant(); - if( $wgDisableLangConversion || $pref == 'zh' || $count > 50) + if( $count > 50 ) return; $count++; $variants = $this->autoConvertToAllVariants($link); @@ -445,7 +445,8 @@ class LanguageZh extends LanguageZh_cn { $varnt = Title::newFromText( $v ); if( $varnt && $varnt->getArticleID() > 0 ) { $nt = $varnt; - $link = $v; + if( !$wgDisableLangConversion && $pref != 'zh' ) + $link = $v; break; } }