Fix #2062 delete references to themes in skin config

This commit is contained in:
Kijin Sung 2023-09-12 21:25:06 +09:00
parent 08ce7b18a8
commit 1ec0d74e77
3 changed files with 5 additions and 90 deletions

View file

@ -228,17 +228,6 @@ class Member extends ModuleObject
return true;
}
// Check skin
if($config->skin)
{
$config_parse = explode('.', $config->skin);
if(count($config_parse) > 1)
{
$template_path = sprintf('./themes/%s/modules/member/', $config_parse[0]);
if(is_dir($template_path)) return true;
}
}
// supprot multilanguage agreement.
if(FileHandler::exists('./files/member_extra_info/agreement.txt')) return true;
if(FileHandler::exists('./files/ruleset/insertMember.xml')) return true;
@ -550,22 +539,6 @@ class Member extends ModuleObject
$oModuleController->updateModuleConfig('member', $config);
}
// Check skin
if($config->skin)
{
$config_parse = explode('.', $config->skin);
if (count($config_parse) > 1)
{
$template_path = sprintf('./themes/%s/modules/member/', $config_parse[0]);
if(is_dir($template_path))
{
$config->skin = implode('|@|', $config_parse);
$oModuleController = getController('module');
$oModuleController->updateModuleConfig('member', $config);
}
}
}
if(file_exists('./files/member_extra_info/agreement.txt'))
{
$source_file = RX_BASEDIR.'files/member_extra_info/agreement.txt';