A lot email templates renamed, SQL fixed:
[mailer.git] / inc / modules / admin / what-send_coupon.php
index b304dbe7bada516e5bf1f2f642d5d2af1ee3c620..9cf143b81f21d6dca7a0a78058c75913b6a7da56 100644 (file)
@@ -108,7 +108,7 @@ if (isFormSent()) {
                                );
 
                                // Load member email template
-                               $mailText = loadEmailTemplate('member_coupon', $content, $userid);
+                               $mailText = loadEmailTemplate('member_coupon_code', $content, $userid);
 
                                // And deliver it
                                sendEmail($userid, '{--MEMBER_COUPON_SUBJECT--}', $mailText);
@@ -132,7 +132,7 @@ if (isFormSent()) {
                );
 
                // Send admin notification
-               sendAdminNotification('{--ADMIN_COUPON_SUBJECT--}', 'admin_coupon', $content);
+               sendAdminNotification('{--ADMIN_COUPON_SUBJECT--}', 'admin_coupon_code', $content);
 
                // Free result
                SQL_FREERESULT($result);