X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FWebResponse.php;h=0208a72ab962717091f1870193fbe9f7fa1c1248;hp=339b2e3ff0ac6f11851a3b707b9077de7d733325;hb=9a37fb8e4851d13bfb208eb886c9947a7f21571c;hpb=9de4779e206628d8c7c9ae76785bfe825b5267d5 diff --git a/includes/WebResponse.php b/includes/WebResponse.php index 339b2e3ff0..0208a72ab9 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -39,6 +39,7 @@ class WebResponse { * @param null|int $http_response_code Forces the HTTP response code to the specified value. */ public function header( $string, $replace = true, $http_response_code = null ) { + \MediaWiki\HeaderCallback::warnIfHeadersSent(); if ( $http_response_code ) { header( $string, $replace, $http_response_code ); } else {