Navigation Menu

Skip to content

Commit

Permalink
Updated the method name in email component.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Apr 21, 2011
1 parent fac5ae5 commit ddb54b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Controller/Component/EmailComponent.php
Expand Up @@ -348,7 +348,7 @@ public function send($content = null, $template = null, $layout = null) {
if ($layout) {
$this->layout = $layout;
}
$lib->layout($this->layout, $this->template)->viewVars($this->_controller->viewVars)->emailFormat($this->sendAs);
$lib->template($this->template, $this->layout)->viewVars($this->_controller->viewVars)->emailFormat($this->sendAs);

if (!empty($this->attachments)) {
$lib->attachments($this->_formatAttachFiles());
Expand Down

0 comments on commit ddb54b6

Please sign in to comment.