Index: trunk/extensions/Translate/SpecialLanguageStats.php |
— | — | @@ -34,14 +34,11 @@ |
35 | 35 | |
36 | 36 | $out = ''; |
37 | 37 | |
38 | | - #if( $this->including() ) { |
39 | | -# if( isset( Language::getLanguageNames( true ) ) ) { |
40 | | - if( 1 ) { |
41 | | - $out .= $this->getGroupStats( $par ); |
42 | | - } else { |
43 | | - $wgOut->addWikiMsg( 'translate-page-no-such-language' ); |
44 | | - } |
45 | | - #} |
| 38 | + if( array_key_exists( $par, Language::getLanguageNames() ) ) { |
| 39 | + $out .= $this->getGroupStats( $par ); |
| 40 | + } else { |
| 41 | + $wgOut->addWikiMsg( 'translate-page-no-such-language' ); |
| 42 | + } |
46 | 43 | $wgOut->addHTML( $out ); |
47 | 44 | } |
48 | 45 | |