r97379 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97378‎ | r97379 | r97380 >
Date:16:17, 17 September 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Fixed a regression in Special:LanguageStats, default value should be the current interface language
Modified paths:
  • /trunk/extensions/Translate/specials/SpecialLanguageStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/specials/SpecialLanguageStats.php
@@ -70,6 +70,8 @@
7171
7272 public function __construct() {
7373 parent::__construct( 'LanguageStats' );
 74+ global $wgLang;
 75+ $this->target = $wgLang->getCode();
7476 }
7577
7678 function execute( $par ) {
@@ -87,7 +89,7 @@
8890 $wgOut->addModules( 'ext.translate.messagetable' );
8991
9092 $params = explode( '/', $par );
91 - if ( isset( $params[0] ) ) {
 93+ if ( isset( $params[0] ) && trim( $params[0] ) ) {
9294 $this->target = $params[0];
9395 }
9496 if ( isset( $params[1] ) ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97260Introduced Special:MessageGroupStats...nikerabbit13:13, 16 September 2011

Status & tagging log