Fixed incorrect Controller object property name usage in Email component. Closes #1661

This commit is contained in:
ADmad 2011-04-19 00:38:51 +05:30
parent da9ee49db9
commit 961208c9be

View file

@ -455,7 +455,7 @@ class EmailComponent extends Component {
* @access private
*/
function _render($content) {
$viewClass = $this->Controller->view;
$viewClass = $this->Controller->viewClass;
if ($viewClass != 'View') {
list($plugin, $viewClass) = pluginSplit($viewClass, true);