feat(email-tempaltes): apply nl2p filters
This commit is contained in:
parent
198c5087c7
commit
823a76d73d
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class Template extends View
|
||||||
if (\is_readable($this->path)) {
|
if (\is_readable($this->path)) {
|
||||||
$template = \file_get_contents($this->path); // Include template file
|
$template = \file_get_contents($this->path); // Include template file
|
||||||
} else if (!empty($this->content)) {
|
} else if (!empty($this->content)) {
|
||||||
$template = $this->print($this->content);
|
$template = $this->print($this->content, self::FILTER_NL2P);
|
||||||
} else {
|
} else {
|
||||||
throw new Exception('"'.$this->path.'" template is not readable or not found');
|
throw new Exception('"'.$this->path.'" template is not readable or not found');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue