mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
포인트 지급 방식 변경, 댓글 수정 허용 관련 문제점 개선
This commit is contained in:
parent
ec2bbca41e
commit
a56954684a
7 changed files with 66 additions and 13 deletions
|
|
@ -24,6 +24,7 @@ class pointAdminController extends point
|
|||
$config = $oModuleModel->getModuleConfig('point');
|
||||
// Arrange variables
|
||||
$args = Context::getRequestVars();
|
||||
$oModuleController = getController('module');
|
||||
|
||||
//if module IO config is off
|
||||
if($args->able_module == 'Y')
|
||||
|
|
@ -64,7 +65,10 @@ class pointAdminController extends point
|
|||
// Check if reading a document is not allowed
|
||||
if($args->disable_read_document == 'Y') $config->disable_read_document = 'Y';
|
||||
else $config->disable_read_document = 'N';
|
||||
|
||||
|
||||
//check is reading a document is not regdate setting
|
||||
$config->no_point_date = (int)$args->no_point_date;
|
||||
|
||||
$oMemberModel = getModel('member');
|
||||
$group_list = $oMemberModel->getGroups();
|
||||
|
||||
|
|
@ -114,11 +118,9 @@ class pointAdminController extends point
|
|||
$config->able_module = 'N';
|
||||
|
||||
// Delete Triggers
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->deleteModuleTriggers('point');
|
||||
}
|
||||
// Save
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->insertModuleConfig('point', $config);
|
||||
|
||||
$this->setMessage('success_updated');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue