header() replaces by default, there's no need to pass a second parameter
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 1 Sep 2008 04:32:36 +0000 (04:32 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 1 Sep 2008 04:32:36 +0000 (04:32 +0000)
includes/GlobalFunctions.php
includes/api/ApiMain.php

index 01ac7ab..a58bbaf 100644 (file)
@@ -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;
                        }
                }
index 4751296..c115fef 100644 (file)
@@ -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());