aboutsummaryrefslogtreecommitdiffstats
path: root/includes/AjaxResponse.php
diff options
context:
space:
mode:
authorTimo Tijhof <krinklemail@gmail.com>2015-06-01 15:31:52 +0100
committerKrinkle <krinklemail@gmail.com>2015-06-04 02:27:35 +0000
commit70429dc8a2996e00aad05b7831bb69e5bf84a4d6 (patch)
tree443e28c7ba97fea88f414652602576e2506f8ed3 /includes/AjaxResponse.php
parentf57b6af45b1cea7f93857b63716a685d2f55c2bf (diff)
downloadmediawikicore-70429dc8a2996e00aad05b7831bb69e5bf84a4d6.tar.gz
mediawikicore-70429dc8a2996e00aad05b7831bb69e5bf84a4d6.zip
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
Diffstat (limited to 'includes/AjaxResponse.php')
-rw-r--r--includes/AjaxResponse.php2
1 files changed, 1 insertions, 1 deletions
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 );