X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FHttpStatus.php;h=7e652162b240a00ecfab8794e8af85a3e9c14faa;hb=79de8fd02f20c8f8a9e22c537906151044f52979;hp=72fc33386935716ec0b7afaaaf4f55de15dd9e16;hpb=a5be382adfdad4678eec18413c6a118cb3284daf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/HttpStatus.php b/includes/libs/HttpStatus.php index 72fc333869..7e652162b2 100644 --- a/includes/libs/HttpStatus.php +++ b/includes/libs/HttpStatus.php @@ -98,9 +98,10 @@ class HttpStatus { $message = self::getMessage( $code ); if ( $message === null ) { trigger_error( "Unknown HTTP status code $code", E_USER_WARNING ); - return false; + return; } + MediaWiki\HeaderCallback::warnIfHeadersSent(); if ( $version === null ) { $version = isset( $_SERVER['SERVER_PROTOCOL'] ) && $_SERVER['SERVER_PROTOCOL'] === 'HTTP/1.0' ?