mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
content 위젯에서 휴지통으로 이동된 문서의 댓글, 비밀댓글이 표시되는 문제 수정
This commit is contained in:
parent
b37ffc27bb
commit
04ab022864
3 changed files with 15 additions and 1 deletions
|
|
@ -191,6 +191,12 @@ class content extends WidgetHandler
|
|||
$obj->module_srl = $args->module_srl;
|
||||
$obj->sort_index = $args->order_target;
|
||||
$obj->list_count = $args->list_count * $args->page_count;
|
||||
|
||||
if($args->show_secret != 'Y')
|
||||
{
|
||||
$obj->is_secret = 'N';
|
||||
}
|
||||
|
||||
// Get model object of the comment module and execute getCommentList() method
|
||||
$oCommentModel = getModel('comment');
|
||||
$output = $oCommentModel->getNewestCommentList($obj);
|
||||
|
|
@ -201,6 +207,12 @@ class content extends WidgetHandler
|
|||
|
||||
foreach($output as $key => $oComment)
|
||||
{
|
||||
$oDocument = getModel('document')->getDocument($oComment->get('document_srl'), false, false);
|
||||
if(!$oDocument->isExists() || $oDocument->isSecret() && $args->show_secret != 'Y')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$attribute = $oComment->getObjectVars();
|
||||
$title = $oComment->getSummary($args->content_cut_size);
|
||||
$thumbnail = $oComment->getThumbnail($args->thumbnail_width,$args->thumbnail_height,$args->thumbnail_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue