missed one

This commit is contained in:
2017-07-01 23:02:27 +10:00
parent 527b961f7c
commit 409e00fc84

View File

@@ -40,6 +40,11 @@ function _booking_registration_email($nid, $balance_payment, $manual = false) {
} }
$params['subject'] = $subject; $params['subject'] = $subject;
//get the footer text
$message_footer = variable_get('booking_html_mail_footer');
$message_footer = isset($message_footer['format']) ? $message_footer['value'] : $message_footer;
$message_footer = token_replace($message_footer, $tokens);
//Check if we should apply a HTML theme to the email text or just send a normal email //Check if we should apply a HTML theme to the email text or just send a normal email
if(variable_get('booking_enable_html_mail', 0) == 1) { if(variable_get('booking_enable_html_mail', 0) == 1) {
$html_body = theme('booking_htmlmail_registration_mail', $html_body = theme('booking_htmlmail_registration_mail',
@@ -48,6 +53,7 @@ function _booking_registration_email($nid, $balance_payment, $manual = false) {
'key' => 'registration_mail', 'key' => 'registration_mail',
'body' => _booking_registration_email_generate($node, $waiting_list, $balance_payment, $manual), 'body' => _booking_registration_email_generate($node, $waiting_list, $balance_payment, $manual),
'subject' => $subject, 'subject' => $subject,
'footer' => $message_footer,
)); ));
watchdog('booking_debug', "<pre>HTML body themed\n@info</pre>", array('@info' => print_r($html_body, true))); watchdog('booking_debug', "<pre>HTML body themed\n@info</pre>", array('@info' => print_r($html_body, true)));
$params['body'] = $html_body; $params['body'] = $html_body;