Index: trunk/extensions/Translate/specials/SpecialLanguageStats.php |
— | — | @@ -399,7 +399,13 @@ |
400 | 400 | |
401 | 401 | protected function getGroupDescription( $group ) { |
402 | 402 | global $wgLang; |
403 | | - return MessageCache::singleton()->transform( $group->getDescription(), true, $wgLang, $this->getTitle() ); |
| 403 | + if ( method_exists( 'MessageCache', 'singleton' ) ) { |
| 404 | + $cache = MessageCache::singleton(); |
| 405 | + } else { |
| 406 | + global $wgMessageCache; |
| 407 | + $cache = $wgMessageCache; |
| 408 | + } |
| 409 | + return $cache->transform( $group->getDescription(), true, $wgLang, $this->getTitle() ); |
404 | 410 | } |
405 | 411 | |
406 | 412 | protected function isBlacklisted( $groupId, $code ) { |