// Subtract bonus points from system
BONUS_POINTS_HANDLER($_CONFIG['bonus_order']);
- }
+ } // END - if
- // Check for surfbar extension
- if (EXT_IS_ACTIVE("surfbar")) {
- // Add the url
- $insertId = SURFBAR_ADMIN_ADD_URL($DATA['url'], $DATA['sender'], $DATA['payment'], $DATA['payment_id']);
-
- // Load email template
- $msg_user = LOAD_EMAIL_TEMPLATE("order_accept_sb", $insertId, $DATA['sender']);
- } else {
- // Load email template
- $msg_user = LOAD_EMAIL_TEMPLATE("order-accept", "", $DATA['sender']);
- }
+ // Load email template
+ $msg_user = LOAD_EMAIL_TEMPLATE("order-accept", "", $DATA['sender']);
// Send email
SEND_EMAIL($DATA['sender'], MEMBER_ORDER_ACCEPTED, $msg_user);
- }
- }
+ } // END - if
+ } // END - foreach
// Set message
$MSG = ADMIN_MAILS_ACTIVATED;