Index: branches/5.1.x/core/kernel/session/inp_session.php =================================================================== diff -u -N -r12657 -r13086 --- branches/5.1.x/core/kernel/session/inp_session.php (.../inp_session.php) (revision 12657) +++ branches/5.1.x/core/kernel/session/inp_session.php (.../inp_session.php) (revision 13086) @@ -1,6 +1,6 @@ Application->IsAdmin() && $special !== 'front') || ($special == 'admin'); + $admin_session = ($this->Application->isAdmin && $special !== 'front') || ($special == 'admin'); if ($admin_session) { $cookie_name = 'adm_' . $cookie_name; @@ -56,7 +56,7 @@ parent::Init($prefix, $special); - if (!$this->Application->IsAdmin() && $this->GetField('PortalUserId') <= 0) { + if (!$this->Application->isAdmin && $this->GetField('PortalUserId') <= 0) { $group_list = $this->Application->ConfigValue('User_GuestGroup').','.$this->Application->ConfigValue('User_LoggedInGroup'); $this->SetField('GroupId', $this->Application->ConfigValue('User_GuestGroup')); $this->SetField('GroupList', $group_list); @@ -114,8 +114,8 @@ function StoreSession(&$session, $additional_fields = Array()) { $fields_hash = Array ( - 'PortalUserId' => $this->Application->IsAdmin() ? 0 : -2, // Guest - 'Language' => $this->Application->GetDefaultLanguageId(), + 'PortalUserId' => $this->Application->isAdmin ? 0 : -2, // Guest + 'Language' => $this->Application->GetDefaultLanguageId(true), 'Theme' => $this->Application->GetDefaultThemeId(), 'IpAddress' => $_SERVER['REMOTE_ADDR'], // getenv('REMOTE_ADDR') won't work on IIS, so use $_SERVER instead 'GroupId' => $this->Application->ConfigValue('User_GuestGroup'),