mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 11:32:12 +09:00
대댓글에 대한 세부옵션을 추가
This commit is contained in:
parent
a0699b2e33
commit
4bbbd6ee36
4 changed files with 36 additions and 12 deletions
|
|
@ -969,9 +969,10 @@ class commentController extends comment
|
|||
* @param int $comment_srl
|
||||
* @param bool $is_admin
|
||||
* @param bool $isMoveToTrash
|
||||
* @param object $childs
|
||||
* @return object
|
||||
*/
|
||||
function deleteComment($comment_srl, $is_admin = FALSE, $isMoveToTrash = FALSE)
|
||||
function deleteComment($comment_srl, $is_admin = FALSE, $isMoveToTrash = FALSE, $childs)
|
||||
{
|
||||
// create the comment model object
|
||||
$oCommentModel = getModel('comment');
|
||||
|
|
@ -1004,7 +1005,10 @@ class commentController extends comment
|
|||
}
|
||||
|
||||
// check if child comment exists on the comment
|
||||
$childs = $oCommentModel->getChildComments($comment_srl);
|
||||
if(!$childs)
|
||||
{
|
||||
$childs = $oCommentModel->getChildComments($comment_srl);
|
||||
}
|
||||
if(count($childs) > 0)
|
||||
{
|
||||
$deleteAllComment = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue