Merge "For rows added by the SpecialStatsAddExtra hook, add an HTML id of "mw-" plus...
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 31 Jul 2013 04:51:47 +0000 (04:51 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 31 Jul 2013 04:51:47 +0000 (04:51 +0000)
includes/specials/SpecialStatistics.php

index 612ba84..f26d1a6 100644 (file)
@@ -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