Rewrites of more constants
[mailer.git] / inc / extensions / ext-birthday.php
index 8440fbe9c5cc5f4dd817d3d837b254d545622873..99761ac17abdbea9e92b95d0fe5fc68a886aeffb 100644 (file)
@@ -190,7 +190,7 @@ case "test": // For testing purposes. For details see file inc/modules/admin/wha
        break;
 
 default: // Do stuff when extension is loaded
-       if ((isBooleanConstantAndTrue('__DAILY_RESET')) && (getConfig('birthday_points') > 0)) {
+       if ((isResetModeEnabled()) && (getConfig('birthday_points') > 0)) {
                // Daily reset was run and we shall pay points so we start checking for members who
                // has a birthday for today
                $INC_POOL[] = sprintf("%sinc/mails/birthday_mails.php", constant('PATH'));