also move protected variable resetting into the correct scope

This commit is contained in:
euromark 2013-06-29 16:23:55 +02:00
parent b346c4af8e
commit c94fe1b729

View file

@ -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);