Migration of stelzi's commit 1022 with some changes so we have a nicer code. See...
[mailer.git] / doubler.php
index 9a63547..6920cd1 100644 (file)
@@ -211,7 +211,7 @@ if (isInstalled()) {
        if (getConfig('doubler_send_mode') == 'DIRECT') loadInclude('inc/doubler_send.php');
 
        // Output header
-       loadInclude('inc/header.php');
+       loadIncludeOnce('inc/header.php');
 
        // Banner in text
        define('__DOUBLER_BANNER', LOAD_TEMPLATE('doubler_banner', true));
@@ -272,7 +272,7 @@ if (isInstalled()) {
        LOAD_TEMPLATE('doubler_index');
 
        // Output footer
-       loadInclude('inc/footer.php');
+       loadIncludeOnce('inc/footer.php');
 } else {
        // You have to install first!
        redirectToUrl('install.php');