Moving include up so its not buried deep inside the class.

This commit is contained in:
mark_story 2010-11-22 21:15:02 -05:00
parent 79aafda698
commit f48811a2ff

View file

@ -22,6 +22,9 @@
* @since CakePHP(tm) v .0.10.0.1222 * @since CakePHP(tm) v .0.10.0.1222
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
if (!class_exists('Security')) {
App::import('Core', 'Security');
}
/** /**
* Session class for Cake. * Session class for Cake.
@ -193,9 +196,6 @@ class CakeSession extends Object {
} }
} }
if (isset($_SESSION) || $start === true) { if (isset($_SESSION) || $start === true) {
if (!class_exists('Security')) {
App::import('Core', 'Security');
}
$this->sessionTime = $this->time + (Security::inactiveMins() * Configure::read('Session.timeout')); $this->sessionTime = $this->time + (Security::inactiveMins() * Configure::read('Session.timeout'));
$this->security = Configure::read('Security.level'); $this->security = Configure::read('Security.level');
} }