Index: trunk/phase3/skins/CologneBlue.php |
— | — | @@ -16,6 +16,8 @@ |
17 | 17 | * @subpackage Skins |
18 | 18 | */ |
19 | 19 | class SkinCologneBlue extends Skin { |
| 20 | + # We have several search form. Make sure they have different id |
| 21 | + var $searchFormCount = '' ; |
20 | 22 | |
21 | 23 | function getStylesheet() { |
22 | 24 | return "common/cologneblue.css?1"; |
— | — | @@ -300,17 +302,17 @@ |
301 | 303 | |
302 | 304 | function searchForm( $label = "" ) |
303 | 305 | { |
304 | | - global $wgRequest; |
| 306 | + global $wgRequest, $searchFormCount; |
305 | 307 | |
306 | 308 | $search = $wgRequest->getText( 'search' ); |
307 | 309 | $action = $this->escapeSearchLink(); |
308 | | - $s = "<form id=\"search\" method=\"get\" class=\"inline\" action=\"$action\">"; |
| 310 | + $s = "<form id=\"searchForm{$searchFormCount}\" method=\"get\" class=\"inline\" action=\"$action\">"; |
309 | 311 | if ( "" != $label ) { $s .= "{$label}: "; } |
310 | 312 | |
311 | | - $s .= "<input type='text' name=\"search\" size='14' value=\"" |
| 313 | + $s .= "<input type='text' name=\"searchInput{$searchFormCount}\" size='14' value=\"" |
312 | 314 | . htmlspecialchars(substr($search,0,256)) . "\" />" |
313 | 315 | . "<br /><input type='submit' name=\"go\" value=\"" . htmlspecialchars( wfMsg( "go" ) ) . "\" /> <input type='submit' name=\"fulltext\" value=\"" . htmlspecialchars( wfMsg( "search" ) ) . "\" /></form>"; |
314 | | - |
| 316 | + $searchFormCount++; |
315 | 317 | return $s; |
316 | 318 | } |
317 | 319 | } |