]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-birthday.php
Fixes for running SQL queries
[mailer.git] / inc / extensions / ext-birthday.php
index 0217d46461ce9c16e17f45501aaada28b140e853..12a73934001dbe7e3570bcbabdd8b5064b3007fb 100644 (file)
@@ -189,8 +189,11 @@ CHANGE `birth_year` `birth_year` SMALLINT(4) UNSIGNED ZEROFILL NOT NULL DEFAULT
        }
        break;
 
+case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
+       break;
+
 default: // Do stuff when extension is loaded
-       if ((isBooleanConstantAndTrue('__DAILY_RESET')) && ($_CONFIG['birthday_points'] > 0)) {
+       if ((isBooleanConstantAndTrue('__DAILY_RESET')) && (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", PATH);