From: Victor Vasiliev Date: Sat, 20 Sep 2008 07:22:33 +0000 (+0000) Subject: Add class to rows so admins can hide groups from Special:Statistics. X-Git-Tag: 1.31.0-rc.0~45202 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=3c2b842e07e06295ec1479e0431d76d97570ae0a;p=lhc%2Fweb%2Fwiklou.git Add class to rows so admins can hide groups from Special:Statistics. --- 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 . ' ' .