$t = Title::newFromURL( $title );
} elseif ($_REQUEST['search']) {
$search = $_REQUEST['search'];
- echo wfMsgNoDB( "searchdisabled", htmlspecialchars( $search ), $wgInputEncoding );
+ echo wfMsgNoDB( "searchdisabled" );
+ echo wfMsgNoDB( "googlesearch", htmlspecialchars( $search ), $wgInputEncoding );
wfAbruptExit();
} else {
$t = Title::newFromText( wfMsgNoDB( "mainpage" ) );
$redircond = $this->searchRedirects();
if ( $wgDisableTextSearch ) {
- $wgOut->addHTML( wfMsg( "searchdisabled", htmlspecialchars( $search ), $wgInputEncoding ) );
+ $wgOut->addHTML( wfMsg( "searchdisabled" ) );
+ $wgOut->addHTML( wfMsg( "googlesearch", htmlspecialchars( $search ), $GLOBALS['wgInputEncoding'] ) );
} else {
$sql = "SELECT cur_id,cur_namespace,cur_title," .
"cur_text FROM cur,searchindex " .
}
}
if( ! $anyhit ){
- $wgOut->addHTML( wfMsg("notitlematches") );
+ $wgOut->addHTML( wfMsg("notitlematches") );
}
+ $wgOut->addHTML( wfMsg( "googlesearch", htmlspecialchars( $search ), $GLOBALS['wgInputEncoding'] ) );
}
/* static */ function doFuzzyTitleSearch( $search, $namespace ){
Search in namespaces :<br>
$1<br>
$2 List redirects Search for $3 $9",
-"searchdisabled" => "<p>Sorry! Full text search has been disabled temporarily, for performance reasons. In the meantime, you can use the Google search below, which may be out of date.</p>
-
+"searchdisabled" => "<p>Sorry! Full text search has been disabled temporarily, for performance reasons. In the meantime, you can use the Google search below, which may be out of date.</p>",
+"googlesearch" => "
<!-- SiteSearch Google -->
<FORM method=GET action=\"http://www.google.com/search\">
<TABLE bgcolor=\"#FFFFFF\"><tr><td>