mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
When deleting a comment, add to display 'deleted' message.
This commit is contained in:
parent
fc8025759c
commit
228eb1f6c9
5 changed files with 95 additions and 5 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue