mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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
This commit is contained in:
parent
23127243b3
commit
f516236cc7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user