mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
Clean up comment deletion routine
This commit is contained in:
parent
92b73a1149
commit
d31536159f
3 changed files with 9 additions and 18 deletions
|
|
@ -521,8 +521,6 @@ class boardController extends board
|
|||
|
||||
if($this->module_info->comment_delete_message === 'yes' && $instant_delete != 'Y')
|
||||
{
|
||||
$comment->content = '';
|
||||
$comment->status = 7;
|
||||
$output = $oCommentController->updateCommentByDelete($comment, $this->grant->manager);
|
||||
}
|
||||
elseif(starts_with('only_comm', $this->module_info->comment_delete_message) && $instant_delete != 'Y')
|
||||
|
|
@ -530,8 +528,6 @@ class boardController extends board
|
|||
$childs = $oCommentModel->getChildComments($comment_srl);
|
||||
if(count($childs) > 0)
|
||||
{
|
||||
$comment->content = '';
|
||||
$comment->status = 7;
|
||||
$output = $oCommentController->updateCommentByDelete($comment, $this->grant->manager);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue