From: Alexandre Emsenhuber Date: Sun, 23 Aug 2009 08:16:24 +0000 (+0000) Subject: * (bug 20362) Special:Statistics now produces valid HTML when view counters are enabled X-Git-Tag: 1.31.0-rc.0~40094 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=579090b822b53f63c77d8c0e5823980386ee5c21;p=lhc%2Fweb%2Fwiklou.git * (bug 20362) Special:Statistics now produces valid HTML when view counters are enabled --- 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 ) {