point module config modify

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9749 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-10-26 02:07:14 +00:00
parent 0b423d7f92
commit bac7473014
3 changed files with 14 additions and 4 deletions

View file

@ -131,7 +131,12 @@
}
$this->setError(-1);
$this->setMessage('success_updated');
$this->setMessage('success_updated', 'info');
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispBoardAdminContent');
$this->setRedirectUrl($returnUrl);
return;
}
}
/**
@ -162,9 +167,12 @@
$oPointController = &getController('point');
$output = $oPointController->setPoint($member_srl, (int)$point, $action);
$this->setError(-1);
$this->setMessage('success_updated', 'info');
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispPointAdminPointList');
header('location:'.$returnUrl);
$this->setRedirectUrl($returnUrl);
return;
}
return $output;