1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

News Comments wasn't respecting comment layout order.

This commit is contained in:
Cameron
2017-01-11 12:07:36 -08:00
parent e438f4e6e2
commit f47ec0436b

View File

@@ -1035,13 +1035,14 @@ class news_front
{
global $comment_edit_query; //FIXME - kill me
$comment_edit_query = 'comment.news.'.$news['news_id'];
$comments = e107::getComment()->compose_comment('news', 'comment', $news['news_id'], null, $news['news_title'], false, true);
$text = e107::getComment()->compose_comment('news', 'comment', $news['news_id'], null, $news['news_title'], false, 'html');
if(!empty($comments))
if(!empty($text))
{
$text = $comments['comment_form'] . $comments['comment'] .$comments['moderate'];
return e107::getRender()->tablerender($comments['caption'], $text,'comment', true);
// $text = $comments['comment_form'] . $comments['comment'] .$comments['moderate'];
return $text;
// return e107::getRender()->tablerender($comments['caption'], $text,'comment', true);
}
}