From: Zheng Zhu Date: Mon, 29 Nov 2004 02:42:58 +0000 (+0000) Subject: try all variants when displaying search results. X-Git-Tag: 1.5.0alpha1~1200 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=8477476587408f673eed9f08625e0a5e1da79df7;p=lhc%2Fweb%2Fwiklou.git try all variants when displaying search results. --- diff --git a/languages/LanguageZh.php b/languages/LanguageZh.php index 644449a5e2..c27036b26b 100644 --- a/languages/LanguageZh.php +++ b/languages/LanguageZh.php @@ -122,8 +122,8 @@ class LanguageZh extends LanguageZh_cn { function convertForSearchResult( $termsArray ) { $terms = implode( '|', $termsArray ); - $terms = $this->autoConvert( $terms, 'zh-cn' ); - $ret = array_unique( explode('|', $termsArray.'|'.$terms) ); + $terms = implode( '|', $this->autoConvertToAllVariants( $terms ) ); + $ret = array_unique( explode('|', $terms) ); return $ret; } }