Index: trunk/extensions/Translate/specials/SpecialLanguageStats.php |
— | — | @@ -70,6 +70,8 @@ |
71 | 71 | |
72 | 72 | public function __construct() { |
73 | 73 | parent::__construct( 'LanguageStats' ); |
| 74 | + global $wgLang; |
| 75 | + $this->target = $wgLang->getCode(); |
74 | 76 | } |
75 | 77 | |
76 | 78 | function execute( $par ) { |
— | — | @@ -87,7 +89,7 @@ |
88 | 90 | $wgOut->addModules( 'ext.translate.messagetable' ); |
89 | 91 | |
90 | 92 | $params = explode( '/', $par ); |
91 | | - if ( isset( $params[0] ) ) { |
| 93 | + if ( isset( $params[0] ) && trim( $params[0] ) ) { |
92 | 94 | $this->target = $params[0]; |
93 | 95 | } |
94 | 96 | if ( isset( $params[1] ) ) { |