From 0eaa6b5334ddc38ce6767b083a525b5f59fd04a6 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 10 Oct 2014 14:58:03 +0200 Subject: [PATCH] Use config for $wgLanguageCode in OutputPage.php Follow-Up: I5e0ebc173631d1d1052de7ccee4ef839c7c1767f Change-Id: Idd7fab9f8bf47fc303b5923327da67905e12e527 --- includes/OutputPage.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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. -- 2.20.1