From f5be2ded4bc9e1841435b7b80849e26c7f8dbe52 Mon Sep 17 00:00:00 2001 From: phpnut Date: Mon, 22 Oct 2007 17:24:37 +0000 Subject: [PATCH] Adding fix to EmailComponent, would not use custom view. git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5862 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/controller/components/email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/controller/components/email.php b/cake/libs/controller/components/email.php index 9663d4ace..273d494c8 100644 --- a/cake/libs/controller/components/email.php +++ b/cake/libs/controller/components/email.php @@ -360,7 +360,7 @@ class EmailComponent extends Object{ $viewClass = $viewClass . 'View'; loadView($this->Controller->view); } - $View = new View($this->Controller); + $View = new $viewClass($this->Controller); $View->layout = $this->layout; $msg = null;