From: Greg Sabino Mullane Date: Wed, 3 Jan 2007 16:36:05 +0000 (+0000) Subject: Only do stripforsearch if we are using MySQL, per bug # 8470 X-Git-Tag: 1.31.0-rc.0~54676 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=2e20425ffdfd72addeed54c388938a1307ed065f;p=lhc%2Fweb%2Fwiklou.git Only do stripforsearch if we are using MySQL, per bug # 8470 --- diff --git a/languages/Language.php b/languages/Language.php index e0ad7e678b..aa83839cc6 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -954,6 +954,11 @@ class Language { * @return string */ function stripForSearch( $string ) { + global $wgDBtype; + if ( $wgDBtype != 'mysql' ) { + return $string; + } + # MySQL fulltext index doesn't grok utf-8, so we # need to fold cases and convert to hex