From f57410fc681ad3b946ade6e30e066c0216169626 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 14 Oct 2009 20:45:14 +0000 Subject: [PATCH] * (bug 21113) "Other statistics" header on Special:Statistics is no more displayed when there isn't any entry in it --- RELEASE-NOTES | 2 ++ includes/specials/SpecialStatistics.php | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c5b83913d9..4759d1724e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -555,6 +555,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 21030) Fixed schema choices from being overwritten by defining unique field names per driver. * (bug 21115) wgCanonicalSpecialPageName javascript variable is now always false on non-special pages +* (bug 21113) "Other statistics" header on Special:Statistics is no more + displayed when there isn't any entry in it == API changes in 1.16 == diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 51e76f84f6..2e785b8b68 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -282,7 +282,10 @@ class SpecialStatistics extends SpecialPage { private function getOtherStats( $stats ) { global $wgLang; - + + if ( !count( $stats ) ) + return ''; + $return = Xml::openElement( 'tr' ) . Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-hooks', array( 'parseinline' ) ) ) . Xml::closeElement( 'tr' ); -- 2.20.1