Optimised Company() Setup() Config() and changed method_directory into URL
This commit is contained in:
@@ -30,7 +30,7 @@ class Auth_OSB extends Auth_ORM {
|
||||
// If we are not a valid user object, then we are not logged in
|
||||
if (is_object($user) AND $user instanceof Model_Account AND $user->loaded()) {
|
||||
|
||||
if (Config::sitemode() == Kohana::DEVELOPMENT && Kohana::$config->load('config')->site_debug)
|
||||
if (Config::sitemode() == Kohana::DEVELOPMENT && Kohana::$config->load('debug')->site)
|
||||
SystemMessage::add(array('title'=>'Debug','type'=>'debug','body'=>Kohana::debug(array('user'=>$user->username,'r'=>$role))));
|
||||
|
||||
if (! empty($role)) {
|
||||
@@ -257,7 +257,7 @@ class Auth_OSB extends Auth_ORM {
|
||||
$sct = Kohana::$config->load('config')->session_change_trigger;
|
||||
if (session_id() != $oldsess AND count($sct))
|
||||
foreach ($sct as $t => $c)
|
||||
if (Config::moduleexist($t))
|
||||
if (Config::module_exist($t))
|
||||
foreach (ORM::factory(ucwords($t))->where($c,'=',$oldsess)->find_all() as $o)
|
||||
$o->set('session_id',session_id())
|
||||
->update();
|
||||
|
Reference in New Issue
Block a user