SpecialStatistics::getOtherStats use standard language instead of inContentLanguage
authormwjames <jamesin.hongkong.1@gmail.com>
Thu, 16 May 2013 16:51:32 +0000 (01:51 +0900)
committerBrian Wolff <bawolff+wn@gmail.com>
Thu, 16 May 2013 17:10:00 +0000 (17:10 +0000)
Use user language instead of inContentLanguage.

Bug: 48542
Change-Id: Ib7d9cb5aa3051b5d602f7a0838425d92fc7a515f

includes/specials/SpecialStatistics.php

index dbf2f0d..612ba84 100644 (file)
@@ -298,7 +298,7 @@ class SpecialStatistics extends SpecialPage {
 
                                // Collect all items that belong to the same header
                                foreach ( $items as $key => $value ) {
-                                       $name = $this->msg( $key )->inContentLanguage()->parse();
+                                       $name = $this->msg( $key )->parse();
                                        $number = htmlspecialchars( $value );
 
                                        $return .= $this->formatRow( $name, $this->getLanguage()->formatNum( $number ), array( 'class' => 'mw-statistics-hook' ) );