* Wrap legend of historyPage into a div with class 'mw-history-legend'
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 24 Aug 2009 14:30:32 +0000 (14:30 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 24 Aug 2009 14:30:32 +0000 (14:30 +0000)
* Move legend above pager. It looks more consistent/logical

includes/HistoryPage.php

index c8f3595..5cd0b0d 100644 (file)
@@ -317,12 +317,13 @@ class HistoryPager extends ReverseChronologicalPager {
         * @return string HTML output
         */
        function getStartBody() {
-               global $wgScript, $wgEnableHtmlDiff, $wgUser;
+               global $wgScript, $wgEnableHtmlDiff, $wgUser, $wgOut;
                $this->lastRow = false;
                $this->counter = 1;
                $this->oldIdChecked = 0;
 
-               $s = wfMsgExt( 'histlegend', array( 'parse') );
+               $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',