mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
Fix error while saving custom list of mention suffixes
This commit is contained in:
parent
97596e2e23
commit
ecda653e77
4 changed files with 25 additions and 83 deletions
|
|
@ -28,40 +28,47 @@ class ncenterliteAdminController extends ncenterlite
|
|||
'mlayout_srl',
|
||||
'document_notify'
|
||||
);
|
||||
if(!$obj->use && $obj->disp_act == 'dispNcenterliteAdminConfig')
|
||||
{
|
||||
$config->use = array();
|
||||
}
|
||||
|
||||
foreach($config_vars as $val)
|
||||
{
|
||||
if($obj->{$val})
|
||||
{
|
||||
$config->{$val} = $obj->{$val};
|
||||
}
|
||||
if($obj->disp_act == 'dispNcenterliteAdminConfig' && !$obj->anonymous_name)
|
||||
}
|
||||
|
||||
if ($obj->disp_act == 'dispNcenterliteAdminConfig')
|
||||
{
|
||||
if (!$obj->use)
|
||||
{
|
||||
$config->use = array();
|
||||
}
|
||||
if (!$config->anonymous_name)
|
||||
{
|
||||
$config->anonymous_name = null;
|
||||
}
|
||||
if($obj->disp_act == 'dispNcenterliteAdminConfig')
|
||||
if (!$config->mention_suffixes)
|
||||
{
|
||||
if ($obj->mention_suffixes)
|
||||
{
|
||||
$config->mention_suffixes = array_map('trim', implode(',', $obj->mention_suffixes));
|
||||
}
|
||||
else
|
||||
{
|
||||
$config->mention_suffixes = array();
|
||||
}
|
||||
$config->mention_suffixes = array();
|
||||
}
|
||||
if($obj->disp_act == 'dispNcenterliteAdminSeletedmid' && !$obj->hide_module_srls)
|
||||
if (!is_array($config->mention_suffixes))
|
||||
{
|
||||
$config->mention_suffixes = array_map('trim', explode(',', $config->mention_suffixes));
|
||||
}
|
||||
}
|
||||
|
||||
if ($obj->disp_act == 'dispNcenterliteAdminSeletedmid')
|
||||
{
|
||||
if (!$config->hide_module_srls)
|
||||
{
|
||||
$config->hide_module_srls = array();
|
||||
}
|
||||
if($obj->disp_act == 'dispNcenterliteAdminSeletedmid' && !$obj->admin_notify_module_srls)
|
||||
if (!$config->admin_notify_module_srls)
|
||||
{
|
||||
$config->admin_notify_module_srls = array();
|
||||
}
|
||||
}
|
||||
|
||||
$output = $oModuleController->updateModuleConfig('ncenterlite', $config);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue