From: Roland Häder Date: Wed, 9 Nov 2011 16:37:16 +0000 (+0000) Subject: Also no raw output-mode here. This is being used only for server redirects X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f869712bf42e81f3faa2bbbb09da227f85575eda;p=mailer.git Also no raw output-mode here. This is being used only for server redirects --- diff --git a/inc/template-functions.php b/inc/template-functions.php index 34e43eb311..205c96de97 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -143,7 +143,7 @@ function outputHtml ($htmlCode, $newLine = true) { debug_report_bug(__FUNCTION__, __LINE__, '{--FATAL_ERROR--}: {--NO_RENDER_DIRECT--}'); break; } // END - switch - } elseif ((getPhpCaching() == 'on') && ((!isset($GLOBALS['header'])) || (count($GLOBALS['header']) == 0))) { + } elseif ((getPhpCaching() == 'on') && ((!isset($GLOBALS['header'])) || (count($GLOBALS['header']) == 0)) && (!isRawOutputMode())) { // Output cached HTML code $GLOBALS['output'] = ob_get_contents(); @@ -160,7 +160,7 @@ function outputHtml ($htmlCode, $newLine = true) { // Output code here, DO NOT REMOVE! ;-) outputRawCode($GLOBALS['output']); - } elseif ((getOutputMode() == 'render') && (!empty($GLOBALS['output']))) { + } elseif ((getOutputMode() == 'render') && (!empty($GLOBALS['output'])) && (!isRawOutputMode())) { // Send all HTTP headers sendHttpHeaders();