]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/order.php
Mahor rewrite:
[mailer.git] / inc / modules / order.php
index 3b98a3e872579adcd05985e703c7e5ed2571db08..0b3a5a4f7df1c6d9eb930abb1b00857acc1146f5 100644 (file)
@@ -50,7 +50,7 @@ if (!defined('__SECURITY')) {
 // When URL is empty nothing bad happend here
 if (empty($URL)) {
        // Is the auto-send mechanism active or inactive?
-       if ($_CONFIG['autosend_active'] == "Y") {
+       if (getConfig('autosend_active') == "Y") {
                // Auto-send is active
                define('ADMIN_AUTOSEND',  COMPILE_CODE(ADMIN_AUTOSEND_ACTIVE));
                define('MEMBER_AUTOSEND', COMPILE_CODE(MEMBER_AUTOSEND_ACTIVE));
@@ -86,12 +86,12 @@ if (empty($URL)) {
 
                // Update used points
                $ADD = "";
-               if ($_CONFIG['order_max_full'] == "ORDER") $ADD = ", mail_orders=mail_orders+1";
+               if (getConfig('order_max_full') == "ORDER") $ADD = ", mail_orders=mail_orders+1";
                SUB_POINTS("order", $GLOBALS['userid'], $USED);
 
                // Prepare content
                $content = array(
-                       'blocks'   => $_CONFIG['max_send'],
+                       'blocks'   => getConfig('max_send'),
                        'subject'  => $DATA[0],
                        'text'     => $DATA[1],
                        'payment'  => GET_PAYMENT($DATA[3]),