fix subject line

This commit is contained in:
2017-06-29 13:14:37 +10:00
parent a0f5f259fd
commit 16e34ebfd1

View File

@@ -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'))); $to = variable_get('booking_notify_email', variable_get('site_mail', ini_get('sendmail_from')));
if ($balance_payment == TRUE) { 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)); array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname));
} }
else { else {
$params['subject'] = t('New Registration: !first !last', $subject = t('New Registration: !first !last',
array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname)); array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname));
} }
$params['subject'] = $subject;
$body = variable_get('booking_email_notification_text'); $body = variable_get('booking_email_notification_text');
//Use the value of the field if it is an array from a HTML textarea //Use the value of the field if it is an array from a HTML textarea