Change-Id: Id01f4712e3dd297594e9ed2389ad411be5f553e7
* @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 ) {
* @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 ) {
+ if ( headers_sent() ) {
+ MWDebug::warning( 'Headers already sent, should send headers earlier than ' . wfGetCaller() );
+ }
if ( $http_response_code ) {
header( $string, $replace, $http_response_code );
} else {
if ( $http_response_code ) {
header( $string, $replace, $http_response_code );
} else {