From: Umherirrender Date: Sat, 9 Sep 2017 23:44:29 +0000 (+0200) Subject: Fix return in HttpStatus::header X-Git-Tag: 1.31.0-rc.0~2081^2 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=d19a4dd230386343089b9934575e13fce99e8148;p=lhc%2Fweb%2Fwiklou.git Fix return in HttpStatus::header No caller expected a bool as return, which is not given in any case, so remove it Change-Id: Iaf994342e9f783108c767bb2de13af7345247805 --- diff --git a/includes/libs/HttpStatus.php b/includes/libs/HttpStatus.php index 27f872857c..7e652162b2 100644 --- a/includes/libs/HttpStatus.php +++ b/includes/libs/HttpStatus.php @@ -98,7 +98,7 @@ 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();