From 613fbc254a53350282b124b3ac7d0cfcaaa63af2 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Mon, 29 Jul 2013 17:58:30 -0700 Subject: [PATCH] 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 --- includes/specials/SpecialStatistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1