mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +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
|
|
@ -1045,6 +1045,19 @@
|
|||
$point = Context::get('point');
|
||||
if($point != -1) $point = 1;
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl, false, false);
|
||||
$module_srl = $oDocument->get('module_srl');
|
||||
if(!$module_srl) return new Object(-1, 'msg_invalid_request');
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$document_config = $oModuleModel->getModulePartConfig('document',$module_srl);
|
||||
if($point == -1){
|
||||
if($document_config->use_vote_down!='S') return new Object(-1, 'msg_invalid_request');
|
||||
}else{
|
||||
if($document_config->use_vote_up!='S') return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$args->document_srl = $document_srl;
|
||||
$args->point = $point;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue