mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
휴지통에서 댓글 복원할 수 있는 메서드 추가.
This commit is contained in:
parent
b040372133
commit
7b4c49d7e9
2 changed files with 55 additions and 1 deletions
|
|
@ -467,7 +467,18 @@ class commentAdminController extends comment
|
|||
$obj->module_srl = $originObject->module_srl;
|
||||
|
||||
$oCommentController = getController('comment');
|
||||
$output = $oCommentController->insertComment($obj, true);
|
||||
$oCommentModel = getModel('comment');
|
||||
|
||||
$oComment = $oCommentModel->getComment($originObject->comment_srl);
|
||||
|
||||
if($oComment)
|
||||
{
|
||||
$output = $oCommentController->updateCommentByRestore();
|
||||
}
|
||||
else
|
||||
{
|
||||
$output = $oCommentController->insertComment($obj, true);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue