mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
관리자 모드에서 댓글 삭제시 답글이 있어서 지워지지 않는 것은 무시하고 다음으로 진행하도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3169 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
030d7ab420
commit
5f40fa5d8e
1 changed files with 6 additions and 2 deletions
|
|
@ -27,16 +27,20 @@
|
|||
|
||||
$oCommentController = &getController('comment');
|
||||
|
||||
$deleted_count = 0;
|
||||
|
||||
// 글삭제
|
||||
for($i=0;$i<$comment_count;$i++) {
|
||||
$comment_srl = trim($comment_srl_list[$i]);
|
||||
if(!$comment_srl) continue;
|
||||
|
||||
$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) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue