Comment fix, Check update refine.

모듈이 비활성화 되어 있을때는 트리거가 없는게 정상 이므로, 업데이트 메시지를 표시하지 않습니다.

주석이 반대로 적힌 부분이 있어서 수정합니다.
This commit is contained in:
MinSoo Kim 2015-05-25 09:28:07 +09:00
parent e75983768f
commit c13690bfd5
2 changed files with 8 additions and 4 deletions

View file

@ -30,7 +30,7 @@ class communicationAdminController extends communication
// 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');
//if module IO config is off
//if module IO config is on
if($args->able_module === 'Y')
{
// Re-install triggers, if it was disabled.

View file

@ -76,10 +76,14 @@ class communication extends ModuleObject
}
}
// Create triggers
foreach($this->triggers as $trigger)
// check if module is abled
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;