X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fheader.php;h=7dbc6b3e324e7825e7828fd7c5285a4f985ab5a1;hb=da5c63bacddced77a951cbe7b223f314885a6c87;hp=da0f68cfe6ff01f6d3840fd6547486e23ec6ba32;hpb=66b91ce490ab549425619c95fc12086e126d541b;p=mailer.git diff --git a/inc/header.php b/inc/header.php index da0f68cfe6..7dbc6b3e32 100644 --- a/inc/header.php +++ b/inc/header.php @@ -1,7 +1,7 @@ '); - if ($GLOBALS['header_sent'] == 0) $GLOBALS['header_sent'] = 1; + if ($GLOBALS['__header_sent'] == '0') { + $GLOBALS['__header_sent'] = 1; + } // END - if } // END - if // Add BODY tag or not? -if ((getOutputMode() != '1') && ($GLOBALS['header_sent'] == 1)) { - LOAD_TEMPLATE('page_body'); - $GLOBALS['header_sent'] = 2; +// @TODO Find a way to not use direct module comparison +if ((!isCssOutputMode()) && (!isRawOutputMode()) && ($GLOBALS['__header_sent'] == 1) && (getModule() != 'frametester') && (!isFramesetModeEnabled())) { + loadTemplate('page_body'); + $GLOBALS['__header_sent'] = 2; } // END - if -// +// [EOF] ?>