From 16e34ebfd16861a13315888c5e2edda7b2037ee2 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 29 Jun 2017 13:14:37 +1000 Subject: [PATCH] fix subject line --- booking.emails.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/booking.emails.inc b/booking.emails.inc index e6dd79a..6698458 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -97,13 +97,14 @@ function _booking_regn_notifyonly_email($node, $balance_payment) { $to = variable_get('booking_notify_email', variable_get('site_mail', ini_get('sendmail_from'))); if ($balance_payment == TRUE) { - $params['subject'] = t('Registration Fully Paid: !first !last', + $subject = t('Registration Fully Paid: !first !last', array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname)); } else { - $params['subject'] = t('New Registration: !first !last', + $subject = t('New Registration: !first !last', array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname)); } + $params['subject'] = $subject; $body = variable_get('booking_email_notification_text'); //Use the value of the field if it is an array from a HTML textarea