From a9aef5600fe3dc5c7868dc9a42d271908abc42c3 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Tue, 12 Apr 2011 23:32:26 -0400 Subject: [PATCH] Removed the object from ClassRegistry. It is not used in 2.0. --- lib/Cake/Network/CakeEmail.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Cake/Network/CakeEmail.php b/lib/Cake/Network/CakeEmail.php index c93c74bbe..8b354e901 100644 --- a/lib/Cake/Network/CakeEmail.php +++ b/lib/Cake/Network/CakeEmail.php @@ -1076,7 +1076,6 @@ class CakeEmail { $msg[] = '--alt-' . $this->_boundary . '--'; $msg[] = ''; - ClassRegistry::removeObject('view'); return $msg; } @@ -1105,10 +1104,7 @@ class CakeEmail { $this->_textMessage = $rendered; } - $msg = array_merge($msg, $content); - ClassRegistry::removeObject('view'); - - return $msg; + return array_merge($msg, $content); } }