mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
also move protected variable resetting into the correct scope
This commit is contained in:
parent
b346c4af8e
commit
c94fe1b729
1 changed files with 2 additions and 1 deletions
|
@ -1070,7 +1070,6 @@ class CakeEmail {
|
|||
$content = implode("\n", $content) . "\n";
|
||||
}
|
||||
|
||||
$this->_textMessage = $this->_htmlMessage = '';
|
||||
$this->_message = $this->_render($this->_wrap($content));
|
||||
|
||||
$contents = $this->transportClass()->send($this);
|
||||
|
@ -1443,6 +1442,8 @@ class CakeEmail {
|
|||
* @return array Email body ready to be sent
|
||||
*/
|
||||
protected function _render($content) {
|
||||
$this->_textMessage = $this->_htmlMessage = '';
|
||||
|
||||
$content = implode("\n", $content);
|
||||
$rendered = $this->_renderTemplates($content);
|
||||
|
||||
|
|
Loading…
Reference in a new issue