----------------------------------------
* CRM-12930: CRM/Core/BAO/MessageTemplates.php does not obey CIVICRM_MAIL_SMARTY
http://issues.civicrm.org/jira/browse/CRM-12930
$smarty = CRM_Core_Smarty::singleton();
$body_text = $smarty->fetch('string:' . $body_text);
$body_html = $smarty->fetch('string:' . $body_html);
- $body_subject = $smarty->fetch('string:' . $messageSubject);
+ $body_subject = $smarty->fetch('string:' . $body_subject);
$params = array(array('contact_id', '=', $contactId, 0, 0));
list($contact, $_) = CRM_Contact_BAO_Query::apiQuery($params);