// Clear own output buffer
$GLOBALS['output'] = '';
+ // To make redirects working (no content type), output mode must be raw
+ setOutputMode(-1);
+
// Load URL when headers are not sent
sendRawRedirect(doFinalCompilation(str_replace('&', '&', $url), false));
} else {
// Setter for 'output_mode' value
function setOutputMode ($newOutputMode) {
- $GLOBALS['output_mode'] = (int) $newOutputMode;
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'output_mode=' . $newOutputMode);
+ $GLOBALS['output_mode'] = (int) $newOutputMode;
+ $GLOBALS['getScriptOutputMode'] = (int) $newOutputMode;
}
// Checks wether output_mode is set and optionally aborts on miss