revert broken commit which causes search form to fail
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 9 Jan 2006 05:11:25 +0000 (05:11 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 9 Jan 2006 05:11:25 +0000 (05:11 +0000)
skins/CologneBlue.php

index eeff28a..ebe3fb4 100644 (file)
@@ -16,8 +16,6 @@ if( !defined( 'MEDIAWIKI' ) )
  * @subpackage Skins
  */
 class SkinCologneBlue extends Skin {
-       # We have several search form. Make sure they have different id
-       var $searchFormCount = '' ;
 
        function getStylesheet() {
                return "common/cologneblue.css?1";
@@ -302,17 +300,17 @@ class SkinCologneBlue extends Skin {
 
        function searchForm( $label = "" )
        {
-               global $wgRequest, $searchFormCount;
+               global $wgRequest;
 
                $search = $wgRequest->getText( 'search' );
                $action = $this->escapeSearchLink();
-               $s = "<form id=\"searchForm{$searchFormCount}\" method=\"get\" class=\"inline\" action=\"$action\">";
+               $s = "<form id=\"search\" method=\"get\" class=\"inline\" action=\"$action\">";
                if ( "" != $label ) { $s .= "{$label}: "; }
 
-               $s .= "<input type='text' name=\"searchInput{$searchFormCount}\" size='14' value=\""
+               $s .= "<input type='text' name=\"search\" size='14' value=\""
                  . htmlspecialchars(substr($search,0,256)) . "\" />"
                  . "<br /><input type='submit' name=\"go\" value=\"" . htmlspecialchars( wfMsg( "go" ) ) . "\" /> <input type='submit' name=\"fulltext\" value=\"" . htmlspecialchars( wfMsg( "search" ) ) . "\" /></form>";
-               $searchFormCount++;
+
                return $s;
        }
 }