git-svn-id: http://xe-core.googlecode.com/svn/trunk@1752 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-25 01:00:14 +00:00
parent c74baad204
commit 6b1a61b34a
9 changed files with 19 additions and 13 deletions

View file

@ -25,8 +25,9 @@
// 각 모듈별 act에 대해서도 피해갈 부분이 있으면 피해감
switch($this->act) {
// 게시물 작성시 신규 등록이 아니면 패스~
case 'procInsertDocument' :
case 'procBoardInsertDocument' :
// document module의 model 객체 생성
$oDocumentModel = &getModel('document');
@ -37,11 +38,16 @@
// 이미 존재하는 글이라면 return
if($oDocument->isExists()) return;
break;
// 댓글 작성시 신규 등록이 아니면 패스~
case 'procInsertComment' :
// 이미 존재하는 댓글인지 체크
case 'procBoardInsertComment' :
case 'procBlogInsertComment' :
$comment_srl = Context::get('comment_srl');
if($comment_srl) return;
$oCommentModel = &getModel('comment');
// 이미 존재하는 댓글인지 체크
$comment = $oCommentModel->getComment($comment_srl);
if($comment->comment_srl == $comment_srl) return;
break;
}