mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Force refresh of signup config and signup ruleset if agreement is in old format
This commit is contained in:
parent
11c04c5a26
commit
bf6ccfcb44
1 changed files with 11 additions and 0 deletions
|
|
@ -218,6 +218,10 @@ class member extends ModuleObject {
|
|||
{
|
||||
if($signupItem->name === 'find_account_question') return true;
|
||||
}
|
||||
if(!$config->agreements)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if($config->skin)
|
||||
{
|
||||
|
|
@ -356,6 +360,13 @@ class member extends ModuleObject {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if(!$config->agreements)
|
||||
{
|
||||
$config = memberModel::getMemberConfig();
|
||||
$config->identifier = $config->identifier ?: 'user_id';
|
||||
$config->signupForm = $oMemberAdminController->createSignupForm($config->identifier);
|
||||
$output = $oModuleController->updateModuleConfig('member', $config);
|
||||
}
|
||||
|
||||
if($config->skin)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue