]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-doubler.php
Mahor rewrite:
[mailer.git] / inc / extensions / ext-doubler.php
index 1696640d88cd365924b36bc25e3eb3970027b73f..75cc6c2d3fc0d1f01aa86305ba76cd2f293f99f8 100644 (file)
@@ -88,7 +88,7 @@ PRIMARY KEY(id)
        // --> This also means who fast the doubled points will be payed out!
        $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD doubler_send_mode ENUM('DIRECT','RESET') NOT NULL DEFAULT 'DIRECT'";
        // Timeout for entries to be purged (default: one week)
-       $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD doubler_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT ".($_CONFIG['one_day']*7)."";
+       $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD doubler_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getConfig('one_day')*7)."";
        // Number of newest entries to display
        $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD doubler_display_new TINYINT(3) UNSIGNED NOT NULL DEFAULT 10";
        // Number of entries which will be payed out soon
@@ -238,7 +238,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')) && ($_CONFIG['doubler_send_mode'] == "RESET")) {
+       if ((isBooleanConstantAndTrue('__DAILY_RESET')) && (getConfig('doubler_send_mode') == "RESET")) {
                // So let's check for points
                $INC_POOL[] = sprintf("%sinc/doubler_send.php", PATH);
        }