diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2015-06-01 15:31:52 +0100 |
---|---|---|
committer | Krinkle <krinklemail@gmail.com> | 2015-06-04 02:27:35 +0000 |
commit | 70429dc8a2996e00aad05b7831bb69e5bf84a4d6 (patch) | |
tree | 443e28c7ba97fea88f414652602576e2506f8ed3 /includes/AjaxResponse.php | |
parent | f57b6af45b1cea7f93857b63716a685d2f55c2bf (diff) | |
download | mediawikicore-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.php | 2 |
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 ); |