projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8137108
)
More fixes for redirect vs. regular output, thanks to wernisman
author
Roland Häder
<roland@mxchange.org>
Sun, 22 Nov 2009 20:00:33 +0000
(20:00 +0000)
committer
Roland Häder
<roland@mxchange.org>
Sun, 22 Nov 2009 20:00:33 +0000
(20:00 +0000)
inc/functions.php
patch
|
blob
|
history
diff --git
a/inc/functions.php
b/inc/functions.php
index d6a9cb65eb4a910efe4db53dd2c17190e2c2a2ac..95d143c2a33e1dcde41e965dd93ac032694a99c5 100644
(file)
--- a/
inc/functions.php
+++ b/
inc/functions.php
@@
-85,7
+85,7
@@
function outputHtml ($htmlCode, $newLine = true) {
app_die(__FUNCTION__, __LINE__, '<strong>{--FATAL_ERROR--}:</strong> {--LANG_NO_RENDER_DIRECT--}');
break;
} // END - switch
app_die(__FUNCTION__, __LINE__, '<strong>{--FATAL_ERROR--}:</strong> {--LANG_NO_RENDER_DIRECT--}');
break;
} // END - switch
- } elseif (
getPhpCaching() == 'on'
) {
+ } elseif (
(getPhpCaching() == 'on') && ((!isset($GLOBALS['header'])) || (count($GLOBALS['header']) == 0))
) {
// Output cached HTML code
$GLOBALS['output'] = ob_get_contents();
// Output cached HTML code
$GLOBALS['output'] = ob_get_contents();
@@
-121,6
+121,9
@@
function outputHtml ($htmlCode, $newLine = true) {
// Output code here, DO NOT REMOVE! ;-)
outputRawCode($GLOBALS['output']);
// Output code here, DO NOT REMOVE! ;-)
outputRawCode($GLOBALS['output']);
+ } else {
+ // And flush all headers
+ flushHeaders();
}
}
}
}