. "<input type=text name=\"search\" size=19 value=\""
. htmlspecialchars(substr($search,0,256)) . "\">\n"
. "<input type=submit name=\"go\" value=\"" . wfMsg ("go") . "\"> "
- . "<input type=submit value=\"" . wfMsg ("search") . "\"></form>";
+ . "<input type=submit name=\"fulltext\" value=\"" . wfMsg ("search") . "\"></form>";
return $s;
}
wfProfileOut( "main-misc-setup" );
if ( "" != $search ) {
- if($go) {
- wfGo( $search );
- } else {
+ if( isset($_REQUEST['fulltext']) ) {
wfSearch( $search );
+ } else {
+ wfGo( $search );
}
} else if( !$wgTitle or $wgTitle->getInterwiki() != "" or $wgTitle->getDBkey() == "" ) {
$wgTitle = Title::newFromText( wfMsg( "badtitle" ) );