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;
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')));
}