From 579090b822b53f63c77d8c0e5823980386ee5c21 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 23 Aug 2009 08:16:24 +0000 Subject: [PATCH] * (bug 20362) Special:Statistics now produces valid HTML when view counters are enabled --- RELEASE-NOTES | 2 ++ includes/specials/SpecialStatistics.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 22f51a6783..3d7cddd2d1 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -421,6 +421,8 @@ this. Was used when mwEmbed was going to be an extension. watched page is deleted * (bug 20358) Unprotect tab was missing accesskey; now same as protect tab. * (bug 20317) Cleaned up default main page link accesskey settings +* (bug 20362) Special:Statistics now produces valid HTML when view counters are + enabled == API changes in 1.16 == diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index e35fac8f19..c4725dc2af 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -251,7 +251,9 @@ class SpecialStatistics extends SpecialPage { ) ); if( $res->numRows() > 0 ) { + $text .= Xml::openElement( 'tr' ); $text .= Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-mostpopular', array( 'parseinline' ) ) ); + $text .= Xml::closeElement( 'tr' ); while( $row = $res->fetchObject() ) { $title = Title::makeTitleSafe( $row->page_namespace, $row->page_title ); if( $title instanceof Title ) { -- 2.20.1