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