Skip to content

Commit

Permalink
Moving include up so its not buried deep inside the class.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 23, 2010
1 parent 79aafda commit f48811a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cake/libs/cake_session.php
Expand Up @@ -22,6 +22,9 @@
* @since CakePHP(tm) v .0.10.0.1222
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (!class_exists('Security')) {
App::import('Core', 'Security');
}

/**
* Session class for Cake.
Expand Down Expand Up @@ -193,9 +196,6 @@ function __construct($base = null, $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->security = Configure::read('Security.level');
}
Expand Down

0 comments on commit f48811a

Please sign in to comment.