mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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
|
|
@ -24,26 +24,13 @@ class integration_search extends ModuleObject
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
function checkUpdate()
|
||||
function checkUpdate()
|
||||
{
|
||||
$oModuleModel = getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('integration_search');
|
||||
|
||||
if($config->skin)
|
||||
{
|
||||
$config_parse = explode('.', $config->skin);
|
||||
if(count($config_parse) > 1)
|
||||
{
|
||||
$template_path = sprintf('./themes/%s/modules/integration_search/', $config_parse[0]);
|
||||
if(is_dir($template_path)) return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!ModuleModel::getActionForward('IS'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -52,29 +39,11 @@ class integration_search extends ModuleObject
|
|||
*
|
||||
* @return Object
|
||||
*/
|
||||
function moduleUpdate()
|
||||
function moduleUpdate()
|
||||
{
|
||||
$oModuleModel = getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('message');
|
||||
|
||||
if($config->skin)
|
||||
{
|
||||
$config_parse = explode('.', $config->skin);
|
||||
if(count($config_parse) > 1)
|
||||
{
|
||||
$template_path = sprintf('./themes/%s/modules/integration_search/', $config_parse[0]);
|
||||
if(is_dir($template_path))
|
||||
{
|
||||
$config->skin = implode('|@|', $config_parse);
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->updateModuleConfig('integration_search', $config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!ModuleModel::getActionForward('IS'))
|
||||
{
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController = ModuleController::getInstance();
|
||||
$oModuleController->insertActionForward('integration_search', 'view', 'IS');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue