// Add the general form
$action = htmlspecialchars( wfScript() );
+ $className = 'historysubmit mw-history-compareselectedversions-button';
+ if ( $config->get( 'UseMediaWikiUIEverywhere' ) ) {
+ $className .= ' mw-ui-button mw-ui-progressive';
+ }
$out->addHTML(
"<form action=\"$action\" method=\"get\" id=\"mw-history-searchform\">" .
Xml::fieldset(
) . ' ' .
( $tagSelector ? ( implode( ' ', $tagSelector ) . ' ' ) : '' ) .
$checkDeleted .
- Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . "\n" .
+ Xml::submitButton(
+ $this->msg( 'allpagessubmit' )->text(),
+ array( 'class' => $className )
+ ) . "\n" .
'</fieldset></form>'
);
$this->buttons = '<div>';
$className = 'historysubmit mw-history-compareselectedversions-button';
if ( $this->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) {
- $className .= ' mw-ui-button mw-ui-constructive';
+ $className .= ' mw-ui-button';
}
$this->buttons .= $this->submitButton( $this->msg( 'compareselectedversions' )->text(),
array( 'class' => $className )