Index: trunk/phase3/includes/specials/SpecialStatistics.php |
— | — | @@ -282,7 +282,10 @@ |
283 | 283 | |
284 | 284 | private function getOtherStats( $stats ) { |
285 | 285 | global $wgLang; |
286 | | - |
| 286 | + |
| 287 | + if ( !count( $stats ) ) |
| 288 | + return ''; |
| 289 | + |
287 | 290 | $return = Xml::openElement( 'tr' ) . |
288 | 291 | Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-hooks', array( 'parseinline' ) ) ) . |
289 | 292 | Xml::closeElement( 'tr' ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -555,6 +555,8 @@ |
556 | 556 | * (bug 21030) Fixed schema choices from being overwritten by defining unique field names per driver. |
557 | 557 | * (bug 21115) wgCanonicalSpecialPageName javascript variable is now always |
558 | 558 | false on non-special pages |
| 559 | +* (bug 21113) "Other statistics" header on Special:Statistics is no more |
| 560 | + displayed when there isn't any entry in it |
559 | 561 | |
560 | 562 | == API changes in 1.16 == |
561 | 563 | |