$GLOBALS['page_footer'] = '';
// Footer disabled or already sent?
-// 1234 5 54 45 5 5 543 3 44321
-if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != 1) && ($GLOBALS['footer_sent'] != 2))) && (!isCssOutputMode()))) {
+// 1234 5 54 45 5 5 543 3 443 3 443 3 44321
+if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != 1) && ($GLOBALS['footer_sent'] != 2))) && (!isCssOutputMode()) && (!isAjaxOutputMode()) && (!isImageOutputMode()))) {
// Run the filter, sweet huh?
runFilterChain('page_footer');
setHttpStatus('200 OK');
// If not in CSS mode generate the header
- if (!isCssOutputMode()) {
+ if ((!isCssOutputMode()) && (!isAjaxOutputMode()) && (!isImageOutputMode())) {
// Prepare the header for HTML output
loadHtmlHeader();
} // END - if
addHttpHeader('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
addHttpHeader('Pragma: no-cache'); // HTTP/1.0
addHttpHeader('Connection: Close');
- addHttpHeader('Content-Type: ' . getContentType() . '; charset=UTF-8');
+ // There shall be no output mode in raw/AJAX mode
+ if ((!isRawOutputMode()) && (!isAjaxOutputMode())) {
+ // Send content-type only in CSS/HTML mode
+ addHttpHeader('Content-Type: ' . getContentType() . '; charset=UTF-8');
+ } else {
+ //
+ } // END - if
addHttpHeader('Content-Language: ' . getLanguage());
}