Index: trunk/extensions/LiveTranslate/LiveTranslate.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | die( 'Not an entry point.' ); |
26 | 26 | } |
27 | 27 | |
28 | | -define( 'LiveTranslate_VERSION', '1.2 RC1' ); |
| 28 | +define( 'LiveTranslate_VERSION', '1.2' ); |
29 | 29 | |
30 | 30 | $wgExtensionCredits['other'][] = array( |
31 | 31 | 'path' => __FILE__, |
Index: trunk/extensions/LiveTranslate/LiveTranslate.hooks.php |
— | — | @@ -25,7 +25,8 @@ |
26 | 26 | */ |
27 | 27 | public static function onArticleViewHeader( Article &$article, &$outputDone, &$useParserCache ) { |
28 | 28 | global $egLiveTranslateLanguages; |
29 | | - |
| 29 | + $egLiveTranslateLanguages = array_unique( $egLiveTranslateLanguages ); |
| 30 | + |
30 | 31 | $title = $article->getTitle(); |
31 | 32 | |
32 | 33 | $currentLang = LiveTranslateFunctions::getCurrentLang( $title ); |