adding fix for #1461

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3582 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2006-09-28 17:15:35 +00:00
parent 46d9b86b76
commit c3bd56d464

View file

@ -199,8 +199,7 @@ class CacheHelper extends Helper{
}
$cache = convertSlash($this->here) . '.php';
$file = '<!--cachetime:' . $cacheTime . '-->
<?php
$file = '<!--cachetime:' . $cacheTime . '--><?php
loadController(\'' . $this->view->name . '\');
$this->controller = new ' . $this->view->name . 'Controller();
$this->helpers = unserialize(\'' . serialize($this->view->helpers) . '\');
@ -232,8 +231,7 @@ class CacheHelper extends Helper{
}
$this->loaded[$camelBackedHelper] = (${$camelBackedHelper});
}
?>
' . $file;
?>' . $file;
return cache('views' . DS . $cache, $file, $timestamp);
}
}