Renamed function so it might be more understandable
[mailer.git] / inc / footer.php
index 9907b0608f15455f6c038a7e75775fd6e81dd978..0c9f57765c2ba29cf0e15a229d17340d3cf298f5 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 08/25/2003 *
- * ===============                              Last change: 10/23/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 08/25/2003 *
+ * ===================                          Last change: 10/23/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : footer.php                                       *
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -41,14 +40,17 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
+// Init page footer
+$GLOBALS['page_footer'] = '';
+
 // Footer disabled or already sent?
-// 1234      5                       54    45                              5    5                              543    3                              321
-if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != 1) && ($GLOBALS['footer_sent'] != 2))) && (getOutputMode() != 1))) {
+// 1234      5                       54    45                            5    5                            543    3                44321
+if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != 1) && ($GLOBALS['footer_sent'] != 2))) && (!isCssOutputMode()))) {
        // Run the filter, sweet huh?
        runFilterChain('page_footer');
 
        // Load page footer
-       loadTemplate('page_footer');
+       $GLOBALS['page_footer'] .= loadTemplate('page_footer', true);
 } // END - if
 
 // Footer has been reached