@@ 667-682 (lines=16) @@ | ||
664 | $renderer->setComments($comments); |
|
665 | $renderer->renderThreadView($id, $admin_view); |
|
666 | } |
|
667 | } else { |
|
668 | // Show all threads |
|
669 | $top_comments = $comment_handler->getTopComments( |
|
670 | $xoops->module->getVar('mid'), |
|
671 | $itemid, |
|
672 | $dborder |
|
673 | ); |
|
674 | $c_count = count($top_comments); |
|
675 | if ($c_count > 0) { |
|
676 | for ($i = 0; $i < $c_count; ++$i) { |
|
677 | $comments = $comment_handler->getThread( |
|
678 | $top_comments[$i]->getVar('rootid'), |
|
679 | $top_comments[$i]->getVar('id') |
|
680 | ); |
|
681 | if (false != $comments) { |
|
682 | $renderer = CommentsCommentRenderer::getInstance($xoops->tpl()); |
|
683 | $renderer->setComments($comments); |
|
684 | $renderer->renderThreadView($top_comments[$i]->getVar('id'), $admin_view); |
|
685 | } |
|
@@ 690-702 (lines=13) @@ | ||
687 | } |
|
688 | } |
|
689 | } |
|
690 | } else { |
|
691 | // Show all threads |
|
692 | $top_comments = $comment_handler->getTopComments( |
|
693 | $xoops->module->getVar('mid'), |
|
694 | $itemid, |
|
695 | $dborder |
|
696 | ); |
|
697 | $c_count = count($top_comments); |
|
698 | if ($c_count > 0) { |
|
699 | for ($i = 0; $i < $c_count; ++$i) { |
|
700 | $comments = $comment_handler->getThread( |
|
701 | $top_comments[$i]->getVar('rootid'), |
|
702 | $top_comments[$i]->getVar('id') |
|
703 | ); |
|
704 | $renderer = CommentsCommentRenderer::getInstance($xoops->tpl()); |
|
705 | $renderer->setComments($comments); |