Merge "Compare selected revisions on history page is marked with a class"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 29 Mar 2019 00:11:32 +0000 (00:11 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 29 Mar 2019 00:11:32 +0000 (00:11 +0000)
1  2 
includes/actions/pagers/HistoryPager.php

@@@ -55,20 -55,18 +55,20 @@@ class HistoryPager extends ReverseChron
         * @param string $month
         * @param string $tagFilter
         * @param array $conds
 +       * @param string $day
         */
        public function __construct(
                HistoryAction $historyPage,
                $year = '',
                $month = '',
                $tagFilter = '',
 -              array $conds = []
 +              array $conds = [],
 +              $day = ''
        ) {
                parent::__construct( $historyPage->getContext() );
                $this->historyPage = $historyPage;
                $this->tagFilter = $tagFilter;
 -              $this->getDateCond( $year, $month );
 +              $this->getDateCond( $year, $month, $day );
                $this->conds = $conds;
                $this->showTagEditUI = ChangeTags::showTagEditingUI( $this->getUser() );
        }
                $s .= Html::hidden( 'type', 'revision' ) . "\n";
  
                // Button container stored in $this->buttons for re-use in getEndBody()
-               $this->buttons = '<div>';
+               $this->buttons = Html::openElement( 'div', [ 'class' => 'mw-history-compareselectedversions' ] );
                $className = 'historysubmit mw-history-compareselectedversions-button';
                $attrs = [ 'class' => $className ]
                        + Linker::tooltipAndAccesskeyAttribs( 'compareselectedversions' );