]> git.mxchange.org Git - mailer.git/commitdiff
Also no raw output-mode here. This is being used only for server redirects
authorRoland Häder <roland@mxchange.org>
Wed, 9 Nov 2011 16:37:16 +0000 (16:37 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 9 Nov 2011 16:37:16 +0000 (16:37 +0000)
inc/template-functions.php

index 34e43eb311b33e5e81f91eed904fa3e87a4050d2..205c96de97f3eda28bb30b57ae7bc91455085e7e 100644 (file)
@@ -143,7 +143,7 @@ function outputHtml ($htmlCode, $newLine = true) {
                                debug_report_bug(__FUNCTION__, __LINE__, '<strong>{--FATAL_ERROR--}:</strong> {--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();