From 3c2b842e07e06295ec1479e0431d76d97570ae0a Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Sat, 20 Sep 2008 07:22:33 +0000 Subject: [PATCH] Add class to rows so admins can hide groups from Special:Statistics. --- includes/specials/SpecialStatistics.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 6385a8d1a7..515ada6cce 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -100,7 +100,8 @@ function wfSpecialStatistics( $par = '' ) { array( 'group' => $group ), 'known' ); $text .= formatRow( $grouppage . ' ' . $grouplink, - $wgLang->formatNum( SiteStats::numberingroup( $groupname ) ) ); + $wgLang->formatNum( SiteStats::numberingroup( $groupname ) ), + ' class="statistics-group-' . Sanitizer::escapeClass( $group ) . '"' ); } } $text .= $viewsStats; @@ -156,9 +157,9 @@ function wfSpecialStatistics( $par = '' ) { * @param float $number a number * @return string table row in HTML format */ -function formatRow( $text, $number ) { - return ' - ' . +function formatRow( $text, $number, $trExtraParams = '' ) { + return " + " . $text . ' ' . -- 2.20.1