From f869712bf42e81f3faa2bbbb09da227f85575eda Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 9 Nov 2011 16:37:16 +0000 Subject: [PATCH] Also no raw output-mode here. This is being used only for server redirects --- inc/template-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2