mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
삭제 할때 옵션여부의 동작을 인식하여 휴지통 기능을 실행하도록 개선
This commit is contained in:
parent
9886c92d2b
commit
aefecb203c
3 changed files with 19 additions and 12 deletions
|
|
@ -527,12 +527,14 @@ class boardController extends board
|
|||
// generate comment controller object
|
||||
$oCommentController = getController('comment');
|
||||
|
||||
$updateComment = false;
|
||||
if($this->module_info->comment_delete_message === 'yes' && $instant_delete != 'Y')
|
||||
{
|
||||
$output = $oCommentController->updateCommentByDelete($comment, $this->grant->manager);
|
||||
$updateComment = true;
|
||||
if($this->module_info->trash_use == 'Y')
|
||||
{
|
||||
$output = $oCommentController->moveCommentToTrash($comment);
|
||||
$output = $oCommentController->moveCommentToTrash($comment, $updateComment);
|
||||
}
|
||||
}
|
||||
elseif(starts_with('only_comm', $this->module_info->comment_delete_message) && $instant_delete != 'Y')
|
||||
|
|
@ -541,16 +543,17 @@ class boardController extends board
|
|||
if(count($childs) > 0)
|
||||
{
|
||||
$output = $oCommentController->updateCommentByDelete($comment, $this->grant->manager);
|
||||
$updateComment = true;
|
||||
if($this->module_info->trash_use == 'Y')
|
||||
{
|
||||
$output = $oCommentController->moveCommentToTrash($comment);
|
||||
$output = $oCommentController->moveCommentToTrash($comment, $updateComment);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if($this->module_info->trash_use == 'Y')
|
||||
{
|
||||
$output = $oCommentController->moveCommentToTrash($comment);
|
||||
$output = $oCommentController->moveCommentToTrash($comment, $updateComment);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -566,7 +569,7 @@ class boardController extends board
|
|||
{
|
||||
if($this->module_info->trash_use == 'Y')
|
||||
{
|
||||
$output = $oCommentController->moveCommentToTrash($comment);
|
||||
$output = $oCommentController->moveCommentToTrash($comment, $this->module_info->comment_delete_message);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue