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:
phpnut 2006-03-14 03:04:28 +00:00
parent 3f3ec6d42d
commit a5a96c9268
3 changed files with 4 additions and 3 deletions

View file

@ -6,4 +6,4 @@
// +---------------------------------------------------------------------------------------------------+ //
///////////////////////////////////////////////////////////////////////////////////////////////////////////
1.0.0.2290
1.0.0.2292

View file

@ -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);
}
}

View file

@ -214,7 +214,7 @@ class View extends Object
*
* @return View
*/
function __construct (&$controller = null)
function __construct (&$controller)
{
if ($controller != null)
{