mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
46d9b86b76
commit
c3bd56d464
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue