Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -23,13 +23,6 @@ |
24 | 24 | static function addNavigation( &$outputpage, &$text ) { |
25 | 25 | global $wgUser, $wgTitle; |
26 | 26 | |
27 | | - static $done = false; |
28 | | - if ( $done ) { |
29 | | - return true; |
30 | | - } |
31 | | - |
32 | | - $done = true; |
33 | | - |
34 | 27 | if ( !self::isMessageNamespace( $wgTitle ) ) { |
35 | 28 | return true; |
36 | 29 | } |
— | — | @@ -241,13 +234,7 @@ |
242 | 235 | $group = $wgRequest->getText( 'loadgroup', '' ); |
243 | 236 | $mg = MessageGroups::getGroup( $group ); |
244 | 237 | |
245 | | - /** |
246 | | - * If we were not given group, or the group given was meta... |
247 | | - */ |
248 | | - if ( is_null( $mg ) || $mg->isMeta() ) { |
249 | | - /** |
250 | | - * .. then try harder, because meta groups are *inefficient*. |
251 | | - */ |
| 238 | + if ( $mg === null ) { |
252 | 239 | $group = TranslateUtils::messageKeyToGroup( $namespace, $key ); |
253 | 240 | if ( $group ) { |
254 | 241 | $mg = MessageGroups::getGroup( $group ); |
— | — | @@ -314,7 +301,7 @@ |
315 | 302 | * @return \bool If title is in a message namespace. |
316 | 303 | */ |
317 | 304 | public static function isMessageNamespace( Title $title ) { |
318 | | - global $wgTranslateMessageNamespaces; ; |
| 305 | + global $wgTranslateMessageNamespaces; |
319 | 306 | |
320 | 307 | $namespace = $title->getNamespace(); |
321 | 308 | |