From: umherirrender Date: Fri, 10 Oct 2014 12:58:03 +0000 (+0200) Subject: Use config for $wgLanguageCode in OutputPage.php X-Git-Tag: 1.31.0-rc.0~13640^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=0eaa6b5334ddc38ce6767b083a525b5f59fd04a6;p=lhc%2Fweb%2Fwiklou.git Use config for $wgLanguageCode in OutputPage.php Follow-Up: I5e0ebc173631d1d1052de7ccee4ef839c7c1767f Change-Id: Idd7fab9f8bf47fc303b5923327da67905e12e527 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 34d3ce62be..5176c2b4b2 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2085,8 +2085,6 @@ class OutputPage extends ContextSource { * the object, let's actually output it: */ public function output() { - global $wgLanguageCode; - if ( $this->mDoNothing ) { return; } @@ -2140,7 +2138,7 @@ class OutputPage extends ContextSource { ob_start(); $response->header( 'Content-type: ' . $config->get( 'MimeType' ) . '; charset=UTF-8' ); - $response->header( 'Content-language: ' . $wgLanguageCode ); + $response->header( 'Content-language: ' . $config->get( 'LanguageCode' ) ); // Avoid Internet Explorer "compatibility view" in IE 8-10, so that // jQuery etc. can work correctly.