A lot calls saved, expression language rewritten:
[mailer.git] / inc / autopurge / purge-general.php
index a0c315998c3631abb6600ff63c449e833fe6785f..0e26307b13849fa5b71121dcf1c509b2bd787710 100644 (file)
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-}
-
-// Abort if autopurge is not active or disabled by admin
-if ((!isExtensionActive('autopurge')) || (getConfig('auto_purge_active') != 'Y')) {
+} elseif ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
        // Abort here
        return false;
 }
 
-if ((getConfig('auto_purge_active') == 'Y') && (getConfig('auto_purge') > 0)) {
+if (getConfig('auto_purge') > 0) {
        // Init SQLs
        initSqls();