dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb170b4
)
try all variants when displaying search results.
author
Zheng Zhu
<zhengzhu@users.mediawiki.org>
Mon, 29 Nov 2004 02:42:58 +0000
(
02:42
+0000)
committer
Zheng Zhu
<zhengzhu@users.mediawiki.org>
Mon, 29 Nov 2004 02:42:58 +0000
(
02:42
+0000)
languages/LanguageZh.php
patch
|
blob
|
history
diff --git
a/languages/LanguageZh.php
b/languages/LanguageZh.php
index
644449a
..
c27036b
100644
(file)
--- 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('|', $terms
Array.'|'.$terms
) );
+ $terms =
implode( '|', $this->autoConvertToAllVariants( $terms )
);
+ $ret = array_unique( explode('|', $terms) );
return $ret;
}
}