From: Raimond Spekking Date: Sat, 12 Jun 2010 17:08:51 +0000 (+0000) Subject: Use proper tooltipAndAccessKeyAttribs() X-Git-Tag: 1.31.0-rc.0~36528 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=658f1c23eba11f97a727d69f49fb5a675e3184df;p=lhc%2Fweb%2Fwiklou.git Use proper tooltipAndAccessKeyAttribs() Use Html::() instead of Xml::() --- 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,