mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
r8112 기능추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8113 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9b8e32d45b
commit
741582c912
16 changed files with 40 additions and 4 deletions
|
|
@ -435,6 +435,19 @@
|
|||
$point = Context::get('point');
|
||||
if($point != -1) $point = 1;
|
||||
|
||||
$oCommentModel = &getModel('comment');
|
||||
$oComment = $oCommentModel->getComment($comment_srl, false, false);
|
||||
$module_srl = $oComment->get('module_srl');
|
||||
if(!$module_srl) return new Object(-1, 'msg_invalid_request');
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$comment_config = $oModuleModel->getModulePartConfig('comment',$module_srl);
|
||||
if($point == -1){
|
||||
if($comment_config->use_vote_down!='S') return new Object(-1, 'msg_invalid_request');
|
||||
}else{
|
||||
if($comment_config->use_vote_up!='S') return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$args->comment_srl = $comment_srl;
|
||||
$args->point = $point;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue