From: Kunal Mehta Date: Tue, 30 Jul 2013 00:58:30 +0000 (-0700) Subject: For rows added by the SpecialStatsAddExtra hook, add an HTML id of "mw-" plus the... X-Git-Tag: 1.31.0-rc.0~19074^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=613fbc254a53350282b124b3ac7d0cfcaaa63af2;p=lhc%2Fweb%2Fwiklou.git For rows added by the SpecialStatsAddExtra hook, add an HTML id of "mw-" plus the message key This will allow for the row to be easily selected via CSS, so extensions can easily point the user at the relevant row(s). Change-Id: Ib93e05d1ef89666ddcb132b5eb4b620b160b5565 --- diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 612ba84eca..f26d1a60f3 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -301,7 +301,7 @@ class SpecialStatistics extends SpecialPage { $name = $this->msg( $key )->parse(); $number = htmlspecialchars( $value ); - $return .= $this->formatRow( $name, $this->getLanguage()->formatNum( $number ), array( 'class' => 'mw-statistics-hook' ) ); + $return .= $this->formatRow( $name, $this->getLanguage()->formatNum( $number ), array( 'class' => 'mw-statistics-hook', 'id' => 'mw-' . $key ) ); } } else { // Create the legacy header only once