From 70429dc8a2996e00aad05b7831bb69e5bf84a4d6 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Mon, 1 Jun 2015 15:31:52 +0100 Subject: Use HttpStatus::header instead of manually crafting header() Also: * Update wfHttpError() to use uppercase DOCTYPE, to match other code such as Html.php, wfThumbError(), HttpError.php, etc. Change-Id: I4027e7fe1a138b03f78797b6d1bfe7bd1064d360 --- includes/AjaxResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/AjaxResponse.php') diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php index 8e9f490fa299..b3a6573ba602 100644 --- a/includes/AjaxResponse.php +++ b/includes/AjaxResponse.php @@ -159,7 +159,7 @@ class AjaxResponse { function sendHeaders() { if ( $this->mResponseCode ) { $n = preg_replace( '/^ *(\d+)/', '\1', $this->mResponseCode ); - header( "Status: " . $this->mResponseCode, true, (int)$n ); + HttpStatus::header( $n ); } header ( "Content-Type: " . $this->mContentType ); -- cgit v1.2.3