Browse Source

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

ADmad 15 years ago
parent
commit
961208c9be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Controller/Component/EmailComponent.php

+ 1 - 1
lib/Cake/Controller/Component/EmailComponent.php

@@ -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);