More rewrites to configuration:
[mailer.git] / inc / modules / order.php
index 289e50cd2f505d9226888df3dde829ee9635d7c0..93c09130e9a7f5e46179530de7330c7925cdf8a8 100644 (file)
@@ -58,7 +58,7 @@ if (empty($url)) {
        $type = 'ADMIN';
 
        // Is the auto-send mechanism active or inactive?
-       if (getConfig('autosend_active') == 'Y') {
+       if (isAutosendMemberMailsEnabled()) {
                // Auto-send is active
                $content['admin_autosend']  = '{--ADMIN_AUTOSEND_ACTIVE--}';
                $content['member_autosend'] = '{--MEMBER_AUTOSEND_ACTIVE--}';
@@ -84,7 +84,7 @@ if (empty($url)) {
 
                // Update used points
                $add = '';
-               if ((isExtensionInstalledAndNewer('order', '0.1.1')) && (getConfig('order_max_full') == 'ORDER')) {
+               if ((isExtensionInstalledAndNewer('order', '0.1.1')) && (getOrderMaxFull() == 'ORDER')) {
                        $add = ',`mail_orders`=`mail_orders`+1';
                } // END - if