diff --git a/modules/comment/comment.controller.php b/modules/comment/comment.controller.php index a19dd1e6a..d4b93cbd4 100644 --- a/modules/comment/comment.controller.php +++ b/modules/comment/comment.controller.php @@ -197,23 +197,20 @@ return $output; } - // 입력에 이상이 없으면 해당 글의 댓글 수를 올림 - if(!$manual_inserted) { - // comment model객체 생성 - $oCommentModel = &getModel('comment'); + // comment model객체 생성 + $oCommentModel = &getModel('comment'); - // 해당 글의 전체 댓글 수를 구해옴 - $comment_count = $oCommentModel->getCommentCount($document_srl); + // 해당 글의 전체 댓글 수를 구해옴 + $comment_count = $oCommentModel->getCommentCount($document_srl); - // document의 controller 객체 생성 - $oDocumentController = &getController('document'); + // document의 controller 객체 생성 + $oDocumentController = &getController('document'); - // 해당글의 댓글 수를 업데이트 - $output = $oDocumentController->updateCommentCount($document_srl, $comment_count, $obj->nick_name, true); + // 해당글의 댓글 수를 업데이트 + $output = $oDocumentController->updateCommentCount($document_srl, $comment_count, $obj->nick_name, true); - // 댓글의 권한을 부여 - $this->addGrant($obj->comment_srl); - } + // 댓글의 권한을 부여 + $this->addGrant($obj->comment_srl); // trigger 호출 (after)