]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-profile.php
Possible fix for non-working profile update
[mailer.git] / inc / extensions / ext-profile.php
index 3a6a27d81eaa63439f90df30b24ea5c63784baaf..0947f988cca3eaa29fe28198037293d82b8359b8 100644 (file)
@@ -50,7 +50,7 @@ EXT_SET_VER_HISTORY(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '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('');
                break;
@@ -128,7 +128,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)) {
                                        // So let's check for profiles which needs an update
                                        ADD_INC_TO_POOL(sprintf("%sinc/profile-updte.php", constant('PATH')));
                                }