From eff0a941b67ab93cb73b782d234e0b8b5471cd82 Mon Sep 17 00:00:00 2001 From: Alice Frumin Date: Tue, 19 Jul 2016 12:04:46 -0400 Subject: [PATCH] updating foreach of smarty elements to work with mailContent array --- CRM/Core/BAO/MessageTemplate.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Core/BAO/MessageTemplate.php b/CRM/Core/BAO/MessageTemplate.php index d9b15c4a0c..2fbc9bff10 100644 --- a/CRM/Core/BAO/MessageTemplate.php +++ b/CRM/Core/BAO/MessageTemplate.php @@ -489,11 +489,11 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate { $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) -- 2.25.1