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=9604c55869b0879f944215eda992570820b55ec8;hpb=5335a84c9ef221d03f264834cf136d9dd11a749a 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 {