*/
if( !defined( 'MEDIAWIKI' ) )
- die();
+ die( -1 );
/**
* @todo document
* @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";
+ return "common/cologneblue.css?2";
}
function getSkinName() {
return "cologneblue";
}
function doBeforeContent() {
- global $wgOut, $wgTitle;
$s = "";
$qb = $this->qbSetting();
}
function doGetUserStyles() {
- global $wgOut, $wgStyleSheetPath;
+ global $wgOut;
$s = parent::doGetUserStyles();
$qb = $this->qbSetting();
}
}
-
-
return $s;
}
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;
}
}