* (bug 20362) Special:Statistics now produces valid HTML when view counters are enabled
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 23 Aug 2009 08:16:24 +0000 (08:16 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 23 Aug 2009 08:16:24 +0000 (08:16 +0000)
RELEASE-NOTES
includes/specials/SpecialStatistics.php

index 22f51a6..3d7cddd 100644 (file)
@@ -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 ==
 
index e35fac8..c4725dc 100644 (file)
@@ -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 ) {