function showResults()
{
global $wgUser, $wgTitle, $wgOut, $wgLang, $wgDisableTextSearch;
+ global $wgInputEncoding;
$fname = "SearchEngine::showResults";
$search = $_REQUEST['search'];
}
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" ) .
<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>