From: Niklas Laxström Date: Thu, 14 Apr 2011 11:58:52 +0000 (+0000) Subject: Fix regression introduced in r82451. Only happens when getAllHeaders was not called... X-Git-Tag: 1.31.0-rc.0~30854 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=6d43e71d2a1a8e484f8269b9978f60f38b847ebf;p=lhc%2Fweb%2Fwiklou.git Fix regression introduced in r82451. Only happens when getAllHeaders was not called before LanguageSelector hook was executed, not sure in which conditions this happens or not. --- diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 78667b18cd..f76f12c397 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -734,6 +734,7 @@ class WebRequest { * @param $name String: case-insensitive header name */ public function getHeader( $name ) { + $this->initHeaders(); $name = strtoupper( $name ); if ( isset( $this->headers[$name] ) ) { return $this->headers[$name];