Skip to content

Commit

Permalink
updating foreach of smarty elements to work with mailContent array
Browse files Browse the repository at this point in the history
  • Loading branch information
alifrumin committed Jul 19, 2016
1 parent 94993cf commit eff0a94
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CRM/Core/BAO/MessageTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,11 @@ public static function sendTemplate($params) {
$smarty->assign($name, $value);
}
foreach (array(
'subject',
'text',
'html',
) as $elem) {
$$elem = $smarty->fetch("string:{$$elem}");
'subject',
'text',
'html',
) as $elem) {
$mailContent[$elem] = $smarty->fetch("string:{$mailContent[$elem]}");
}

// send the template, honouring the target user’s preferences (if any)
Expand Down

0 comments on commit eff0a94

Please sign in to comment.