Skip to content

Commit

Permalink
fixing Configure where Set is not found.also adding to CakeSession
Browse files Browse the repository at this point in the history
  • Loading branch information
gwoo committed Jul 25, 2009
1 parent 766e12b commit cfb4602
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cake/libs/cake_session.php
Expand Up @@ -128,7 +128,7 @@ class CakeSession extends Object {
* @access public
*/
function __construct($base = null, $start = true) {
App::import('Core', 'Security');
App::import('Core', 'Set', 'Security');
$this->time = time();

if (Configure::read('Session.checkAgent') === true || Configure::read('Session.checkAgent') === null) {
Expand Down
4 changes: 3 additions & 1 deletion cake/libs/configure.php
Expand Up @@ -25,7 +25,6 @@
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/

/**
* Configuration class (singleton). Used for managing runtime configuration information.
*
Expand Down Expand Up @@ -61,6 +60,9 @@ class Configure extends Object {
function &getInstance($boot = true) {
static $instance = array();
if (!$instance) {
if (!class_exists('Set')) {
require LIBS . 'set.php';
}
$instance[0] =& new Configure();
$instance[0]->__loadBootstrap($boot);
}
Expand Down

0 comments on commit cfb4602

Please sign in to comment.