mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix #2062 delete references to themes in skin config
This commit is contained in:
parent
08ce7b18a8
commit
1ec0d74e77
3 changed files with 5 additions and 90 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue