From f47ec0436b976bd9c0e479b173f108a8710d0d3a Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 11 Jan 2017 12:07:36 -0800 Subject: [PATCH] News Comments wasn't respecting comment layout order. --- e107_plugins/news/news.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/e107_plugins/news/news.php b/e107_plugins/news/news.php index a2f5cefd6..cd7a4970c 100644 --- a/e107_plugins/news/news.php +++ b/e107_plugins/news/news.php @@ -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); } }