mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +00:00
Revision: [2291]
Fixed error when using caching in PHP 4 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2292 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
3f3ec6d42d
commit
a5a96c9268
3 changed files with 4 additions and 3 deletions
|
@ -6,4 +6,4 @@
|
||||||
// +---------------------------------------------------------------------------------------------------+ //
|
// +---------------------------------------------------------------------------------------------------+ //
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
1.0.0.2290
|
1.0.0.2292
|
|
@ -121,7 +121,8 @@ if(defined('CACHE_CHECK') && CACHE_CHECK === true)
|
||||||
if (file_exists($filename))
|
if (file_exists($filename))
|
||||||
{
|
{
|
||||||
uses(DS.'controller'.DS.'component', DS.'view'.DS.'view');
|
uses(DS.'controller'.DS.'component', DS.'view'.DS.'view');
|
||||||
$view = new View();
|
$v = null;
|
||||||
|
$view = new View($v);
|
||||||
$view->renderCache($filename, $TIME_START);
|
$view->renderCache($filename, $TIME_START);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,7 +214,7 @@ class View extends Object
|
||||||
*
|
*
|
||||||
* @return View
|
* @return View
|
||||||
*/
|
*/
|
||||||
function __construct (&$controller = null)
|
function __construct (&$controller)
|
||||||
{
|
{
|
||||||
if ($controller != null)
|
if ($controller != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue