Removing unreachable code

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7896 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2008-11-27 04:52:45 +00:00
parent 9d2f59529c
commit 4cdbd4edd9

View file

@ -478,7 +478,7 @@ class View extends Object {
foreach ($helpers as $helperName) {
$helper =& $this->loaded[$helperName];
if (is_object($helper)) {
if (is_subclass_of($helper, 'Helper') || is_subclass_of($helper, 'helper')) {
if (is_subclass_of($helper, 'Helper')) {
$helper->{$callback}();
}
}
@ -665,7 +665,7 @@ class View extends Object {
}
$this->_triggerHelpers('afterRender');
$out = ob_get_clean();
$caching = (
isset($this->loaded['cache']) &&