************************************************************************/
// Global variable stuff
-global $link, $frame, $CSS, $header;
+global $link, $frame, $CSS, $header, $footer;
// Some security stuff...
if (!defined('__SECURITY')) {
require($INC);
} // END - if
-// @TODO Workaround for css.php
-if (!isset($footer)) $footer = 0;
-
+// Footer disabled or already sent?
if (($footer != "1") && ($footer != "2") && ($CSS != "1")) {
// Output the generated HTML code or do nothing in direct-mode
- if (getTotalFatalMessages() > 0) {
+ if (getTotalFatalErrors() > 0) {
// Output fatal error messages
require_once(PATH."inc/fatal_errors.php");
} // END - if