"Fixes #3849, Deprecated loadView() call in email component when using theme"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6333 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2008-01-08 02:48:07 +00:00
parent d754adb067
commit 348df0fca2

View file

@ -363,7 +363,7 @@ class EmailComponent extends Object{
list($plugin, $viewClass) = explode('.', $viewClass);
}
$viewClass = $viewClass . 'View';
loadView($this->Controller->view);
App::import('View', $this->Controller->view);
}
$View = new $viewClass($this->Controller, false);
$View->layout = $this->layout;