관리자 모드에서 댓글 삭제시 답글이 있어서 지워지지 않는 것은 무시하고 다음으로 진행하도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3169 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-12-07 04:50:30 +00:00
parent 030d7ab420
commit 5f40fa5d8e

View file

@ -27,16 +27,20 @@
$oCommentController = &getController('comment'); $oCommentController = &getController('comment');
$deleted_count = 0;
// 글삭제 // 글삭제
for($i=0;$i<$comment_count;$i++) { for($i=0;$i<$comment_count;$i++) {
$comment_srl = trim($comment_srl_list[$i]); $comment_srl = trim($comment_srl_list[$i]);
if(!$comment_srl) continue; if(!$comment_srl) continue;
$output = $oCommentController->deleteComment($comment_srl, true); $output = $oCommentController->deleteComment($comment_srl, true);
if(!$output->toBool()) return $output; if(!$output->toBool()) continue;
$deleted_count ++;
} }
$this->setMessage( sprintf(Context::getLang('msg_checked_comment_is_deleted'), $comment_count) ); $this->setMessage( sprintf(Context::getLang('msg_checked_comment_is_deleted'), $deleted_count) );
} }
/** /**