mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +09:00
Add proper comments and some _rx_ variables to getDestroyXeVars()
This commit is contained in:
parent
caa80f8d97
commit
d8fcb3cc70
1 changed files with 12 additions and 1 deletions
|
|
@ -762,9 +762,20 @@ function delObjectVars($target_obj, $del_obj): object
|
||||||
return (object)$target_vars;
|
return (object)$target_vars;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete variables that are commonly submitted but don't need to be saved.
|
||||||
|
*
|
||||||
|
* @param array|object $vars
|
||||||
|
* @return array|object
|
||||||
|
*/
|
||||||
function getDestroyXeVars($vars)
|
function getDestroyXeVars($vars)
|
||||||
{
|
{
|
||||||
foreach(array('error_return_url', 'success_return_url', 'ruleset', 'xe_validator_id') as $var)
|
$delete_vars = array(
|
||||||
|
'error_return_url', 'success_return_url', 'ruleset', 'xe_validator_id',
|
||||||
|
'_filter', '_rx_ajax_compat', '_rx_ajax_form', '_rx_csrf_token',
|
||||||
|
);
|
||||||
|
|
||||||
|
foreach($delete_vars as $var)
|
||||||
{
|
{
|
||||||
if(is_array($vars))
|
if(is_array($vars))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue