Only do stripforsearch if we are using MySQL, per bug # 8470

This commit is contained in:
Greg Sabino Mullane 2007-01-03 16:36:05 +00:00
parent 6f2ab1c80a
commit 2e20425ffd

View file

@ -954,6 +954,11 @@ class Language {
* @return string * @return string
*/ */
function stripForSearch( $string ) { function stripForSearch( $string ) {
global $wgDBtype;
if ( $wgDBtype != 'mysql' ) {
return $string;
}
# MySQL fulltext index doesn't grok utf-8, so we # MySQL fulltext index doesn't grok utf-8, so we
# need to fold cases and convert to hex # need to fold cases and convert to hex