* Member template added for the surfbar which notifies the user that the URL is
[mailer.git] / inc / modules / admin / what-unlock_emails.php
index 37eec82c610cf30b41c9734f7b24977230a408c1..3947745f46bdbb7eb7468d68228817c0ba4ec6ca 100644 (file)
@@ -93,11 +93,14 @@ LIMIT 1",
                                        // Check for surfbar extension
                                        if (EXT_IS_ACTIVE("surfbar")) {
                                                // Add the url
-                                               SURFBAR_ADMIN_ADD_URL($DATA[0], $DATA[2], $DATA[3]);
-                                       } // END - if
+                                               $insertId = SURFBAR_ADMIN_ADD_URL($DATA[0], $DATA[2], $DATA[3]);
 
-                                       // Load email template
-                                       $msg_user = LOAD_EMAIL_TEMPLATE("order-accept", "", $DATA[2]);
+                                               // Load email template
+                                               $msg_user = LOAD_EMAIL_TEMPLATE("order_accept_sb", $insertId, $DATA[2]);
+                                       } else {
+                                               // Load email template
+                                               $msg_user = LOAD_EMAIL_TEMPLATE("order-accept", "", $DATA[2]);
+                                       }
 
                                        // Send email
                                        SEND_EMAIL($DATA[2], MEMBER_ORDER_ACCEPTED, $msg_user);