mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 04:42:14 +09:00
Properly initialize user object even when not logged in
This commit is contained in:
parent
78540fbc13
commit
fc63b2e9b8
1 changed files with 5 additions and 1 deletions
|
|
@ -247,7 +247,6 @@ class Context
|
|||
$this->_setJSONRequestArgument();
|
||||
$this->_setRequestArgument();
|
||||
$this->_setUploadedArgument();
|
||||
|
||||
if(isset($_POST['_rx_ajax_compat']) && $_POST['_rx_ajax_compat'] === 'XMLRPC')
|
||||
{
|
||||
self::$_instance->request_method = 'XMLRPC';
|
||||
|
|
@ -356,6 +355,11 @@ class Context
|
|||
{
|
||||
getController('member')->setSessionInfo();
|
||||
}
|
||||
else
|
||||
{
|
||||
self::set('is_logged', false);
|
||||
self::set('logged_info', Rhymix\Framework\Session::getMemberInfo());
|
||||
}
|
||||
}
|
||||
|
||||
// set locations for javascript use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue