diff --git a/modules/board/board.controller.php b/modules/board/board.controller.php index be3c3190e..9d7469cc9 100644 --- a/modules/board/board.controller.php +++ b/modules/board/board.controller.php @@ -510,10 +510,19 @@ class boardController extends board // generate comment controller object $oCommentController = getController('comment'); - $output = $oCommentController->deleteComment($comment_srl, $this->grant->manager); - if(!$output->toBool()) + if($this->module_info->comment_delete_message === 'Y') { - return $output; + $comment->content = ''; + $comment->status = 7; + $output = $oCommentController->updateCommentByDelete($comment, $this->grant->manager); + } + else + { + $output = $oCommentController->deleteComment($comment_srl, $this->grant->manager); + if(!$output->toBool()) + { + return $output; + } } $this->add('mid', Context::get('mid')); diff --git a/modules/board/lang/ko.php b/modules/board/lang/ko.php index f35b1b94d..7f03de62d 100644 --- a/modules/board/lang/ko.php +++ b/modules/board/lang/ko.php @@ -73,3 +73,5 @@ $lang->document_force_to_move = '삭제시 휴지통으로 강제이동'; $lang->about_document_force_to_move = '게시글을 삭제시 휴지통으로 강제이동할지 않할지를 선택하는 옵션입니다.'; $lang->comment_delete_message = '댓글 삭제 메세지'; $lang->about_comment_delete_message = '이 옵션을 사용할 경우 댓글을 삭제할 경우, 댓글이 삭제가 되지 않고 댓글의 내용에 삭제된 메세지를 띄우게 됩니다. 추후 다시 댓글을 복구 할 수 있습니다.'; +$lang->msg_delete_comment = '댓글이 삭제되었습니다.'; +$lang->msg_admin_delete_comment = '관리자에 의해 댓글이 삭제되었습니다.'; diff --git a/modules/board/skins/xedition/_comment.html b/modules/board/skins/xedition/_comment.html index e2fffcbbd..3c1e27f5e 100644 --- a/modules/board/skins/xedition/_comment.html +++ b/modules/board/skins/xedition/_comment.html @@ -25,7 +25,16 @@ - {$comment->getContent(false)} +
+
{$lang->cmd_vote}{$comment->get('voted_count')} {$lang->cmd_vote}{$comment->get('voted_count')} {$lang->cmd_vote_down}{$comment->get('blamed_count')} @@ -43,6 +52,9 @@ {$lang->cmd_delete} {$lang->cmd_comment_do}
++ +