From a5a96c9268934d614f94651b67547947c33eeb8f Mon Sep 17 00:00:00 2001 From: phpnut Date: Tue, 14 Mar 2006 03:04:28 +0000 Subject: [PATCH] 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 --- VERSION.txt | 2 +- cake/bootstrap.php | 3 ++- cake/libs/view/view.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index ba6c7f51b..0a527922f 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -6,4 +6,4 @@ // +---------------------------------------------------------------------------------------------------+ // /////////////////////////////////////////////////////////////////////////////////////////////////////////// -1.0.0.2290 \ No newline at end of file +1.0.0.2292 \ No newline at end of file diff --git a/cake/bootstrap.php b/cake/bootstrap.php index efff13088..9b5ea3cc2 100644 --- a/cake/bootstrap.php +++ b/cake/bootstrap.php @@ -121,7 +121,8 @@ if(defined('CACHE_CHECK') && CACHE_CHECK === true) if (file_exists($filename)) { uses(DS.'controller'.DS.'component', DS.'view'.DS.'view'); - $view = new View(); + $v = null; + $view = new View($v); $view->renderCache($filename, $TIME_START); } } diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php index 196704278..dcd53eb0f 100644 --- a/cake/libs/view/view.php +++ b/cake/libs/view/view.php @@ -214,7 +214,7 @@ class View extends Object * * @return View */ - function __construct (&$controller = null) + function __construct (&$controller) { if ($controller != null) {