Only do stripforsearch if we are using MySQL, per bug # 8470
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 3 Jan 2007 16:36:05 +0000 (16:36 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 3 Jan 2007 16:36:05 +0000 (16:36 +0000)
languages/Language.php

index e0ad7e6..aa83839 100644 (file)
@@ -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