- $wgOut->wrapWikiMsg( "<div class='mw-history-legend'>\n$1</div>", 'histlegend' );
- $s = '';
- if( $this->getNumRows() > 1 && $wgUser->isAllowed('deleterevision') ) {
- $revdel = SpecialPage::getTitleFor( 'Revisiondelete' );
- $s .= Xml::openElement( 'form',
+ $wgOut->wrapWikiMsg( "<div class='mw-history-legend'>\n$1\n</div>", 'histlegend' );
+ $s = Html::openElement( 'form', array( 'action' => $wgScript,
+ 'id' => 'mw-history-compare' ) ) . "\n";
+ $s .= Html::hidden( 'title', $this->title->getPrefixedDbKey() ) . "\n";
+ $s .= Html::hidden( 'action', 'historysubmit' ) . "\n";
+
+ $s .= '<div>' . $this->submitButton( wfMsg( 'compareselectedversions'),
+ array( 'class' => 'historysubmit' ) ) . "\n";
+
+ $this->buttons = '<div>';
+ $this->buttons .= $this->submitButton( wfMsg( 'compareselectedversions'),
+ array( 'class' => 'historysubmit' )
+ + $wgUser->getSkin()->tooltipAndAccessKeyAttribs( 'compareselectedversions' )
+ ) . "\n";
+
+ if( $wgUser->isAllowed('deleterevision') ) {
+ $float = $wgContLang->alignEnd();
+ # Note bug #20966, <button> is non-standard in IE<8
+ $element = Html::element( 'button',