Fixed bug causing different search actions on submit-by-return in IE and moz. Changed...
authorMr. E23 <e23@users.mediawiki.org>
Sat, 14 Feb 2004 13:00:22 +0000 (13:00 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Sat, 14 Feb 2004 13:00:22 +0000 (13:00 +0000)
includes/Skin.php
wiki.phtml

index 598181e..f817d61 100644 (file)
@@ -584,7 +584,7 @@ class Skin {
                  . "<input type=text name=\"search\" size=19 value=\""
                  . htmlspecialchars(substr($search,0,256)) . "\">\n"
                  . "<input type=submit name=\"go\" value=\"" . wfMsg ("go") . "\">&nbsp;"
-                 . "<input type=submit value=\"" . wfMsg ("search") . "\"></form>";
+                 . "<input type=submit name=\"fulltext\" value=\"" . wfMsg ("search") . "\"></form>";
 
                return $s;
        }
index 4093459..3fcf006 100644 (file)
@@ -40,10 +40,10 @@ if ( "" == $title && "delete" != $action ) {
 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" ) );