From 82d993ed6627263d7fc7e4c42a77362381ea78bc Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sat, 29 Dec 2018 22:16:36 +0100 Subject: [PATCH] SpecialMediaStatistics: Add and in the table This avoids that jquery.tablesorter has to add the elements. Change-Id: Iab7baa641113552720df022cd05d7c4970b4a886 --- includes/specials/SpecialMediaStatistics.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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() ); } /** -- 2.20.1