Skip to content
Permalink
Browse files

Renaming EmailComponent::_renderTemplate() to EmailComponent::_render().

  • Loading branch information...
jperras committed Aug 10, 2009
1 parent 6f0f559 commit a52a4fb8821f3f8e02208f2ceb8f366c8c6c1766
Showing with 3 additions and 2 deletions.
  1. +3 −2 cake/libs/controller/components/email.php
@@ -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;
@@ -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') {
@@ -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();

0 comments on commit a52a4fb

Please sign in to comment.
You can’t perform that action at this time.