From 6d43e71d2a1a8e484f8269b9978f60f38b847ebf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 14 Apr 2011 11:58:52 +0000 Subject: [PATCH] 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. --- includes/WebRequest.php | 1 + 1 file changed, 1 insertion(+) 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]; -- 2.20.1