mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
issue 967, 1090 fixed problem on redirection url after member registering.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10136 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2cf8b285ca
commit
4b74cbb028
3 changed files with 13 additions and 12 deletions
|
|
@ -559,9 +559,7 @@
|
|||
}
|
||||
// Log-in
|
||||
if ($config->enable_confirm != 'Y') $this->doLogin($args->user_id);
|
||||
//get redirect url from cookie and invalidate cookie
|
||||
$config->redirect_url = $_COOKIE["XE_REDIRECT_URL"];
|
||||
setcookie("XE_REDIRECT_URL", '', 1);
|
||||
|
||||
// Results
|
||||
$this->add('member_srl', $args->member_srl);
|
||||
if($config->redirect_url) $this->add('redirect_url', $config->redirect_url);
|
||||
|
|
@ -574,9 +572,18 @@
|
|||
$trigger_output = ModuleHandler::triggerCall('member.procMemberInsert', 'after', $config);
|
||||
if(!$trigger_output->toBool()) return $trigger_output;
|
||||
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', '');
|
||||
header('location:'.$returnUrl);
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON')))
|
||||
{
|
||||
if($config->redirect_url)
|
||||
{
|
||||
$returnUrl = $config->redirect_url;
|
||||
}
|
||||
else
|
||||
{
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', '');
|
||||
}
|
||||
|
||||
$this->setRedirectUrl = $returnUrl;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue