mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-14 16:02:14 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@131 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2525fe0838
commit
d21fbeb6c6
19 changed files with 132 additions and 65 deletions
|
|
@ -35,7 +35,7 @@
|
|||
// 원본글을 가져옴
|
||||
$document = $oDocumentModel->getDocument($document_srl);
|
||||
|
||||
if(!$document_srl) return new Object(-1,'msg_invalid_document');
|
||||
if($document_srl != $document->document_srl) return new Object(-1,'msg_invalid_document');
|
||||
if($document->lock_comment=='Y') return new Object(-1,'msg_invalid_request');
|
||||
|
||||
// 댓글를 입력
|
||||
|
|
@ -55,13 +55,16 @@
|
|||
// 해당 글의 전체 댓글 수를 구해옴
|
||||
$comment_count = $oCommentModel->getCommentCount($document_srl);
|
||||
|
||||
// document의 controller 객체 생성
|
||||
$oDocumentController = &getController('document');
|
||||
|
||||
// 해당글의 댓글 수를 업데이트
|
||||
$output = $this->updateCommentCount($document_srl, $comment_count);
|
||||
$output = $oDocumentController->updateCommentCount($document_srl, $comment_count);
|
||||
|
||||
// 댓글의 권한을 부여
|
||||
$this->addGrant($obj->comment_srl);
|
||||
$output->add('comment_srl', $obj->comment_srl);
|
||||
|
||||
$output->add('comment_srl', $obj->comment_srl);
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue