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:
2bb3fd0
)
Using plain strtolower() here broke non-English search for all databases except MySQL!
author
Max Semenik
<maxsem@users.mediawiki.org>
Fri, 30 Oct 2009 15:25:37 +0000
(15:25 +0000)
committer
Max Semenik
<maxsem@users.mediawiki.org>
Fri, 30 Oct 2009 15:25:37 +0000
(15:25 +0000)
includes/search/SearchUpdate.php
patch
|
blob
|
history
diff --git
a/includes/search/SearchUpdate.php
b/includes/search/SearchUpdate.php
index
087a8ba
..
edf2bcb
100644
(file)
--- a/
includes/search/SearchUpdate.php
+++ b/
includes/search/SearchUpdate.php
@@
-47,7
+47,7
@@
class SearchUpdate {
wfProfileIn( $fname.'-regexps' );
$text = preg_replace( "/<\\/?\\s*[A-Za-z][A-Za-z0-9]*\\s*([^>]*?)>/",
-
' ', strtolower( " " . $text /*$this->mText*/
. " " ) ); # Strip HTML markup
+
' ', $wgContLang->lc( " " . $text
. " " ) ); # Strip HTML markup
$text = preg_replace( "/(^|\\n)==\\s*([^\\n]+)\\s*==(\\s)/sD",
"\\1\\2 \\2 \\2\\3", $text ); # Emphasize headings