From f516236cc70d82ee4b115b8578f735378813e804 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 18 Aug 2009 00:34:26 +0000 Subject: [PATCH] API CHANGE: Template codes can no longer be used in emails except when using .ss files. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@84594 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- email/Email.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/email/Email.php b/email/Email.php index 41502b73e..8def34821 100755 --- a/email/Email.php +++ b/email/Email.php @@ -341,11 +341,6 @@ class Email extends ViewableData { // Parse $ variables in the base parameters $data = $this->templateData(); - foreach(array('from','to','subject','body', 'plaintext_body', 'cc', 'bcc') as $param) { - $template = SSViewer::fromString($this->$param); - $this->$param = $template->process($data); - } - // Process a .SS template file $fullBody = $this->body; if($this->ss_template && !$isPlain) {