sending the content language code as Content-language
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Wed, 22 Sep 2004 04:24:50 +0000 (04:24 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Wed, 22 Sep 2004 04:24:50 +0000 (04:24 +0000)
includes/OutputPage.php

index 9c98a56..dcfe19f 100644 (file)
@@ -348,7 +348,7 @@ class OutputPage {
         */
        function output() {
                global $wgUser, $wgLang, $wgDebugComments, $wgCookieExpiration;
-               global $wgInputEncoding, $wgOutputEncoding, $wgLanguageCode;
+               global $wgInputEncoding, $wgOutputEncoding, $wgContLanguageCode;
                global $wgDebugRedirects, $wgMimeType, $wgProfiler;
                if( $this->mDoNothing ){
                        return;
@@ -395,7 +395,7 @@ class OutputPage {
                $sk->postParseLinkColour( false );
 
                header( "Content-type: $wgMimeType; charset={$wgOutputEncoding}" );
-               header( 'Content-language: '.$wgLanguageCode );
+               header( 'Content-language: '.$wgContLanguageCode );
 
                $exp = time() + $wgCookieExpiration;
                foreach( $this->mCookies as $name => $val ) {