From 658f1c23eba11f97a727d69f49fb5a675e3184df Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Sat, 12 Jun 2010 17:08:51 +0000 Subject: [PATCH] Use proper tooltipAndAccessKeyAttribs() Use Html::() instead of Xml::() --- includes/HistoryPage.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/includes/HistoryPage.php b/includes/HistoryPage.php index cbf473d9c1..2a8e193f97 100644 --- a/includes/HistoryPage.php +++ b/includes/HistoryPage.php @@ -375,23 +375,20 @@ class HistoryPager extends ReverseChronologicalPager { $this->oldIdChecked = 0; $wgOut->wrapWikiMsg( "
\n$1\n
", 'histlegend' ); - $s = Xml::openElement( 'form', array( 'action' => $wgScript, + $s = Html::openElement( 'form', array( 'action' => $wgScript, 'id' => 'mw-history-compare' ) ) . "\n"; - $s .= Xml::hidden( 'title', $this->title->getPrefixedDbKey() ) . "\n"; - $s .= Xml::hidden( 'action', 'historysubmit' ) . "\n"; + $s .= Html::hidden( 'title', $this->title->getPrefixedDbKey() ) . "\n"; + $s .= Html::hidden( 'action', 'historysubmit' ) . "\n"; $this->buttons = '
'; $this->buttons .= $this->submitButton( wfMsg( 'compareselectedversions'), - array( - 'class' => 'historysubmit', - 'accesskey' => wfMsg( 'accesskey-compareselectedversions' ), - 'title' => wfMsg( 'tooltip-compareselectedversions' ), - ) + array( 'class' => 'historysubmit' ) + + $wgUser->getSkin()->tooltipAndAccessKeyAttribs( 'compareselectedversions' ) ) . "\n"; if( $wgUser->isAllowed('deleterevision') ) { $float = $wgContLang->alignEnd(); # Note bug #20966,