Google charset fix
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 23 Sep 2003 16:23:09 +0000 (16:23 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 23 Sep 2003 16:23:09 +0000 (16:23 +0000)
includes/SearchEngine.php
languages/Language.php

index 314cf3f..6965eb7 100644 (file)
@@ -142,6 +142,7 @@ class SearchEngine {
        function showResults()
        {
                global $wgUser, $wgTitle, $wgOut, $wgLang, $wgDisableTextSearch;
+               global $wgInputEncoding;
                $fname = "SearchEngine::showResults";
 
                $search         = $_REQUEST['search'];
@@ -228,8 +229,7 @@ class SearchEngine {
                }
 
                if ( $wgDisableTextSearch ) {
-                       $wgOut->addHTML( str_replace( "$1",
-                         htmlspecialchars( $search ), wfMsg( "searchdisabled" ) ) );
+                       $wgOut->addHTML( wfMsg( "searchdisabled", $search, $wgInputEncoding ) );
                } else {
                        if ( 0 == wfNumRows( $res2 ) ) {
                                $wgOut->addHTML( "<h2>" . wfMsg( "notextmatches" ) .
index 8998aef..05e78ea 100644 (file)
@@ -699,6 +699,8 @@ border=\"0\" ALT=\"Google\"></A>
 <INPUT type=submit name=btnG VALUE=\"Google Search\">
 <font size=-1>
 <input type=hidden name=domains value=\"{$wgServer}\"><br><input type=radio name=sitesearch value=\"\"> WWW <input type=radio name=sitesearch value=\"{$wgServer}\" checked> {$wgServer} <br>
+<input type='hidden' name='ie' value='$2'>
+<input type='hidden' name='oe' value='$2'>
 </font>
 </td></tr></TABLE>
 </FORM>