]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-bonus.php
All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / inc / extensions / ext-bonus.php
index 70e8151cd8751136fb9a3396412f3a1e87d73983..0bcddc787e04ff58d7ff334f8e91f535fe2ab86b 100644 (file)
@@ -550,18 +550,18 @@ default: // Do stuff when extension is loaded
                // Daily reset was run so let's check if active rallye is activated
                if (getConfig('bonus_active') == "Y") {
                        // Run active rallye
-                       if (getConfig('bonus_stats') > 0) $INC_POOL[] = sprintf("%sinc/stats_bonus.php", PATH);
-                       $INC_POOL[] = sprintf("%sinc/monthly/monthly_bonus.php", PATH);
+                       if (getConfig('bonus_stats') > 0) $INC_POOL[] = sprintf("%sinc/stats_bonus.php", constant('PATH'));
+                       $INC_POOL[] = sprintf("%sinc/monthly/monthly_bonus.php", constant('PATH'));
                } else {
                        // Reset points
-                       $INC_POOL[] = sprintf("%sinc/reset/reset_bonus.php", PATH);
+                       $INC_POOL[] = sprintf("%sinc/reset/reset_bonus.php", constant('PATH'));
                }
        }
 
        // Check for bonus rallye is active and send mails out
        if ((getConfig('bonus_active') == "Y") && (getConfig('bonus_new_mem_notify') == "Y")) {
                // Include file for sending out mails
-               $INC_POOL[] = sprintf("%sinc/mails/bonus_mails.php", PATH);
+               $INC_POOL[] = sprintf("%sinc/mails/bonus_mails.php", constant('PATH'));
        }
        break;
 }