Skip to content

Commit

Permalink
Renaming EmailComponent::_renderTemplate() to EmailComponent::_render().
Browse files Browse the repository at this point in the history
  • Loading branch information
jperras committed Aug 10, 2009
1 parent 6f0f559 commit a52a4fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cake/libs/controller/components/email.php
Expand Up @@ -328,7 +328,7 @@ function send($content = null, $template = null, $layout = null) {
if ($this->template === null) {
$message = $this->_formatMessage($message);
} else {
$message = $this->_renderTemplate($message);
$message = $this->_render($message);
}
$message[] = '';
$this->__message = $message;
Expand Down Expand Up @@ -382,7 +382,7 @@ function reset() {
* @return array Email ready to be sent
* @access private
*/
function _renderTemplate($content) {
function _render($content) {
$viewClass = $this->Controller->view;

if ($viewClass != 'View') {
Expand All @@ -392,6 +392,7 @@ function _renderTemplate($content) {
$viewClass = $viewClass . 'View';
App::import('View', $this->Controller->view);
}

$View = new $viewClass($this->Controller, false);
$View->layout = $this->layout;
$msg = array();
Expand Down

0 comments on commit a52a4fb

Please sign in to comment.