From: Max Semenik Date: Fri, 30 Oct 2009 15:25:37 +0000 (+0000) Subject: Using plain strtolower() here broke non-English search for all databases except MySQL! X-Git-Tag: 1.31.0-rc.0~39023 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=3a3472b7b45b8288abac11bc1eac0cd8a337814c;p=lhc%2Fweb%2Fwiklou.git Using plain strtolower() here broke non-English search for all databases except MySQL! --- diff --git a/includes/search/SearchUpdate.php b/includes/search/SearchUpdate.php index 087a8ba5dc..edf2bcbb31 100644 --- 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