mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
issue 1226 fixed restore point level
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10353 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3198e339d0
commit
846d11c30c
1 changed files with 13 additions and 7 deletions
|
|
@ -47,14 +47,20 @@
|
|||
// Check if reading a document is not allowed
|
||||
if($args->disable_read_document == 'Y') $config->disable_read_document = 'Y';
|
||||
else $config->disable_read_document = 'N';
|
||||
|
||||
// Per-level group configurations
|
||||
foreach($args as $key => $val) {
|
||||
if(substr($key, 0, strlen('point_group_')) != 'point_group_') continue;
|
||||
$group_srl = substr($key, strlen('point_group_'));
|
||||
$level = $val;
|
||||
if(!$level) unset($config->point_group[$group_srl]);
|
||||
else $config->point_group[$group_srl] = $level;
|
||||
}
|
||||
foreach($config->point_group as $group_srl=>$level)
|
||||
{
|
||||
if($args->{'point_group_'.$group_srl})
|
||||
{
|
||||
$config->point_group[$group_srl] = $args->{'point_group_'.$group_srl};
|
||||
}
|
||||
else
|
||||
{
|
||||
unset($config->point_group[$group_srl]);
|
||||
}
|
||||
}
|
||||
|
||||
$config->group_reset = $args->group_reset;
|
||||
// Per-level point configurations
|
||||
unset($config->level_step);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue