From fde609906135efebfac30475c7f89c7d8d97d1c3 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 1 Sep 2008 04:32:36 +0000 Subject: [PATCH] header() replaces by default, there's no need to pass a second parameter --- includes/GlobalFunctions.php | 2 +- includes/api/ApiMain.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 01ac7ab402..a58bbaf6af 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1404,7 +1404,7 @@ function wfResetOutputBuffers( $resetGzipEncoding=true ) { if( $status['name'] == 'ob_gzhandler' ) { // Reset the 'Content-Encoding' field set by this handler // so we can start fresh. - header( 'Content-Encoding:', true ); + header( 'Content-Encoding:' ); break; } } diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 4751296bb7..c115fefe37 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -268,7 +268,7 @@ class ApiMain extends ApiBase { $headerStr = 'MediaWiki-API-Error: ' . $errCode; if ($e->getCode() === 0) - header($headerStr, true); + header($headerStr); else header($headerStr, true, $e->getCode()); -- 2.20.1