mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
#249 비밀댓글에 댓글을 달 경우 권한이 이양되도록 하여 비밀댓글로 서로 이야기가 가능하도록 추가 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3664 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2d9042dc34
commit
cacb75738d
2 changed files with 20 additions and 5 deletions
|
|
@ -208,7 +208,7 @@
|
|||
/**
|
||||
* @brief 댓글을 계층형으로 재배치
|
||||
**/
|
||||
function _arrangeComment(&$comment_list, $list, $depth) {
|
||||
function _arrangeComment(&$comment_list, $list, $depth, $set_grant = false) {
|
||||
if(!count($list)) return;
|
||||
foreach($list as $key => $val) {
|
||||
$oCommentItem = new commentItem();
|
||||
|
|
@ -219,13 +219,17 @@
|
|||
$oCommentItem->setAttribute($tmp);
|
||||
|
||||
$comment_list[$tmp->comment_srl] = $oCommentItem;
|
||||
$this->_arrangeComment($comment_list,$val->child,$depth+1);
|
||||
if($set_grant) $oCommentItem->setAccessible();
|
||||
|
||||
$this->_arrangeComment($comment_list,$val->child,$depth+1, $oCommentItem->isGranted());
|
||||
} else {
|
||||
$val->depth = $depth;
|
||||
$oCommentItem->setAttribute($val);
|
||||
|
||||
if($set_grant) $oCommentItem->setAccessible();
|
||||
$comment_list[$val->comment_srl] = $oCommentItem;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue