]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-autopurge.php
'what','action','module' and 'output_mode' wrapped into functions (WARNUNG: Code...
[mailer.git] / inc / extensions / ext-autopurge.php
index b6ce1be192fa037fab8603366cf3fbb03b449157..cbad4cbfed81ffd0b7f0e95b3f89ee5065800445 100644 (file)
@@ -50,7 +50,7 @@ EXT_SET_VER_HISTORY(array('0.0', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0
 
 switch ($EXT_LOAD_MODE)
 {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin&action=login is called)
+       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
                // SQL commands to run
                ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_pool` MODIFY data_type ENUM('TEMP','SEND','NEW','ADMIN','ACTIVE','DELETED') NOT NULL DEFAULT 'TEMP'");
                if (EXT_IS_ACTIVE('bonus')) {
@@ -257,7 +257,7 @@ switch ($EXT_LOAD_MODE)
 
                        default: // Do stuff when extension is loaded
                                // Do we have a daily-reset-run?
-                               if (isResetModeEnabled() && (!isDebugModeEnabled()) && ($GLOBALS['output_mode'] != 1)) {
+                               if (isResetModeEnabled() && (!isDebugModeEnabled()) && (getOutputMode() != 1)) {
                                        // Yes, we have. So let's auto-purge some campaigns, inactive users and unconfirmed accounts
                                        ADD_INC_TO_POOL(sprintf("%sinc/autopurge.php", constant('PATH')));
                                }