Index: trunk/extensions/Translate/specials/SpecialSupportedLanguages.php |
— | — | @@ -36,17 +36,20 @@ |
37 | 37 | $this->purge = $wgRequest->getVal( 'action' ) === 'purge'; |
38 | 38 | |
39 | 39 | $this->setHeaders(); |
40 | | - TranslateUtils::addSpecialHelpLink( $wgOut, 'Help:Extension:Translate/Statistics_and_reporting#List_of_languages_and_translators' ); |
41 | 40 | $wgOut->addModules( 'ext.translate.special.supportedlanguages' ); |
42 | 41 | |
| 42 | + // Do not add html content to OutputPage before this block of code! |
43 | 43 | $cache = wfGetCache( CACHE_ANYTHING ); |
44 | 44 | $cachekey = wfMemcKey( 'translate-supportedlanguages', $wgLang->getCode() ); |
45 | 45 | $data = $cache->get( $cachekey ); |
46 | 46 | if ( !$this->purge && is_string( $data ) ) { |
| 47 | + TranslateUtils::addSpecialHelpLink( $wgOut, 'Help:Extension:Translate/Statistics_and_reporting#List_of_languages_and_translators' ); |
47 | 48 | $wgOut->addHtml( $data ); |
48 | 49 | return; |
49 | 50 | } |
50 | 51 | |
| 52 | + TranslateUtils::addSpecialHelpLink( $wgOut, 'Help:Extension:Translate/Statistics_and_reporting#List_of_languages_and_translators' ); |
| 53 | + |
51 | 54 | $this->outputHeader(); |
52 | 55 | $wgOut->addWikiMsg( 'supportedlanguages-colorlegend', $this->getColorLegend() ); |
53 | 56 | $wgOut->addWikiMsg( 'supportedlanguages-localsummary' ); |