mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Moving include up so its not buried deep inside the class.
This commit is contained in:
parent
79aafda698
commit
f48811a2ff
1 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue