From: Fomafix Date: Sat, 29 Dec 2018 21:16:36 +0000 (+0100) Subject: SpecialMediaStatistics: Add and in the table X-Git-Tag: 1.34.0-rc.0~3177^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=82d993ed6627263d7fc7e4c42a77362381ea78bc;p=lhc%2Fweb%2Fwiklou.git SpecialMediaStatistics: Add and in the table This avoids that jquery.tablesorter has to add the elements. Change-Id: Iab7baa641113552720df022cd05d7c4970b4a886 --- diff --git a/includes/specials/SpecialMediaStatistics.php b/includes/specials/SpecialMediaStatistics.php index e591da0ec1..873decb5d5 100644 --- a/includes/specials/SpecialMediaStatistics.php +++ b/includes/specials/SpecialMediaStatistics.php @@ -156,7 +156,10 @@ class MediaStatisticsPage extends QueryPage { * Output closing */ protected function outputTableEnd() { - $this->getOutput()->addHTML( Html::closeElement( 'table' ) ); + $this->getOutput()->addHTML( + Html::closeElement( 'tbody' ) . + Html::closeElement( 'table' ) + ); $this->getOutput()->addWikiTextAsInterface( $this->msg( 'mediastatistics-bytespertype' ) ->numParams( $this->totalPerType ) @@ -267,9 +270,10 @@ class MediaStatisticsPage extends QueryPage { 'sortable', 'wikitable' ] ] - ) + ) . + Html::rawElement( 'thead', [], $this->getTableHeaderRow() ) . + Html::openElement( 'tbody' ) ); - $this->getOutput()->addHTML( $this->getTableHeaderRow() ); } /**