Merge branch '2.0' into 2.1

Conflicts:
	lib/Cake/Model/Datasource/CakeSession.php
This commit is contained in:
mark_story 2012-01-29 15:38:56 -05:00
commit a275555297
2 changed files with 4 additions and 4 deletions

View file

@ -114,7 +114,7 @@ class CakeSession {
/**
* Number of requests that can occur during a session time without the session being renewed.
* This feature is only used when `Session.autoRegenerate` is set to true.
* This feature is only used when config value `Session.autoRegenerate` is set to true.
*
* @var integer
* @see CakeSession::_checkValid()
@ -629,14 +629,13 @@ class CakeSession {
$sessionConfig = Configure::read('Session');
if (self::_validAgentAndTime()) {
$time = $config['time'];
self::write('Config.time', self::$sessionTime);
if (isset($sessionConfig['autoRegenerate']) && $sessionConfig['autoRegenerate'] === true) {
$check = $config['countdown'];
$check -= 1;
self::write('Config.countdown', $check);
if (time() > ($time - ($sessionConfig['timeout'] * 60) + 2) || $check < 1) {
if ($check < 1) {
self::renew();
self::write('Config.countdown', self::$requestCountdown);
}

View file

@ -285,6 +285,7 @@ class CacheHelper extends AppHelper {
";
} else {
$file .= "
App::uses('{$this->_View->plugin}AppController', '{$this->_View->plugin}.Controller');
App::uses('{$this->_View->name}Controller', '{$this->_View->plugin}.Controller');
";
}