From: Tim Starling Date: Mon, 1 Sep 2008 04:32:36 +0000 (+0000) Subject: header() replaces by default, there's no need to pass a second parameter X-Git-Tag: 1.31.0-rc.0~45536 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=fde609906135efebfac30475c7f89c7d8d97d1c3;p=lhc%2Fweb%2Fwiklou.git header() replaces by default, there's no need to pass a second parameter --- 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());