Migration of stelzi's commit 1022 with some changes so we have a nicer code. See...
[mailer.git] / show_bonus.php
index d8dc4bf7d087b3a92311196fb4c420541315b90f..6f2e4bffb65b77f40c473b58344c00ae9542368b 100644 (file)
@@ -57,7 +57,7 @@ redirectOnUninstalledExtension('bonus');
 // List only rankings when script is installed
 if (isInstalled()) {
        // Include header
-       loadInclude('inc/header.php');
+       loadIncludeOnce('inc/header.php');
 
        if ((REQUEST_GET('uid') > 0) && (REQUEST_GET('d') > 0) && (REQUEST_ISSET_GET(('t')))) {
                // Set row name
@@ -132,7 +132,7 @@ LIMIT 1",
        LOAD_TEMPLATE('show_bonus', false, $content);
 
        // Include footer
-       loadInclude('inc/footer.php');
+       loadIncludeOnce('inc/footer.php');
 } else {
        // You have to install first!
        redirectToUrl('install.php');