mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
Comment fix, Check update refine.
모듈이 비활성화 되어 있을때는 트리거가 없는게 정상 이므로, 업데이트 메시지를 표시하지 않습니다. 주석이 반대로 적힌 부분이 있어서 수정합니다.
This commit is contained in:
parent
e75983768f
commit
c13690bfd5
2 changed files with 8 additions and 4 deletions
|
|
@ -30,7 +30,7 @@ class communicationAdminController extends communication
|
||||||
// get the default information
|
// get the default information
|
||||||
$args = Context::gets('able_module', 'skin', 'colorset', 'editor_skin', 'sel_editor_colorset', 'mskin', 'mcolorset', 'layout_srl', 'mlayout_srl', 'grant_write_default','grant_write_group');
|
$args = Context::gets('able_module', 'skin', 'colorset', 'editor_skin', 'sel_editor_colorset', 'mskin', 'mcolorset', 'layout_srl', 'mlayout_srl', 'grant_write_default','grant_write_group');
|
||||||
|
|
||||||
//if module IO config is off
|
//if module IO config is on
|
||||||
if($args->able_module === 'Y')
|
if($args->able_module === 'Y')
|
||||||
{
|
{
|
||||||
// Re-install triggers, if it was disabled.
|
// Re-install triggers, if it was disabled.
|
||||||
|
|
|
||||||
|
|
@ -76,10 +76,14 @@ class communication extends ModuleObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create triggers
|
// check if module is abled
|
||||||
foreach($this->triggers as $trigger)
|
if($config->able_module != 'N')
|
||||||
{
|
{
|
||||||
if(!$oModuleModel->getTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4])) return true;
|
// Check triggers
|
||||||
|
foreach($this->triggers as $trigger)
|
||||||
|
{
|
||||||
|
if(!$oModuleModel->getTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4])) return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue