Restore Content-Language header change from e53ff931a
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 30 Sep 2016 22:48:14 +0000 (15:48 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 3 Oct 2016 17:56:45 +0000 (17:56 +0000)
This was lost in a rebase at some point.

Change-Id: I46f376a82205a5c99b98c9e971f9e9d7868ce9fb

includes/cache/HTMLFileCache.php

index a85639f..060837e 100644 (file)
@@ -167,9 +167,10 @@ class HTMLFileCache extends FileCacheBase {
                        $context->getTitle()->resetArticleID( 0 );
                }
 
+               $contLang = $config->get( 'ContLang' );
                $context->getOutput()->sendCacheControl();
                header( "Content-Type: {$config->get( 'MimeType' )}; charset=UTF-8" );
-               header( "Content-Language: {$config->get( 'LanguageCode' )}" );
+               header( "Content-Language: {$contLang->getHtmlCode()}" );
                if ( $this->useGzip() ) {
                        if ( wfClientAcceptsGzip() ) {
                                header( 'Content-Encoding: gzip' );