mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +09:00
issue 351 fixed INPUT_ERROR value
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9522 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fb79643ea2
commit
0af5bfc894
1 changed files with 3 additions and 0 deletions
|
|
@ -262,6 +262,7 @@
|
||||||
// If there is no such action in the module object
|
// If there is no such action in the module object
|
||||||
if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
|
if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!Context::isInstalled())
|
if(!Context::isInstalled())
|
||||||
{
|
{
|
||||||
$this->error = 'msg_invalid_request';
|
$this->error = 'msg_invalid_request';
|
||||||
|
|
@ -422,6 +423,7 @@
|
||||||
$this->error = $message;
|
$this->error = $message;
|
||||||
if (!$redirectUrl && Context::get('error_return_url')) $redirectUrl = Context::get('error_return_url');
|
if (!$redirectUrl && Context::get('error_return_url')) $redirectUrl = Context::get('error_return_url');
|
||||||
$this->_setInputValueToSession();
|
$this->_setInputValueToSession();
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -463,6 +465,7 @@
|
||||||
function _setInputValueToSession()
|
function _setInputValueToSession()
|
||||||
{
|
{
|
||||||
$requestVars = Context::getRequestVars();
|
$requestVars = Context::getRequestVars();
|
||||||
|
unset($requestVars->act, $requestVars->mid, $requestVars->vid, $requestVars->success_return_url, $requestVars->error_return_url);
|
||||||
foreach($requestVars AS $key=>$value) $_SESSION['INPUT_ERROR'][$key] = $value;
|
foreach($requestVars AS $key=>$value) $_SESSION['INPUT_ERROR'][$key] = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue