mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
News Comments wasn't respecting comment layout order.
This commit is contained in:
@@ -1035,13 +1035,14 @@ class news_front
|
|||||||
{
|
{
|
||||||
global $comment_edit_query; //FIXME - kill me
|
global $comment_edit_query; //FIXME - kill me
|
||||||
$comment_edit_query = 'comment.news.'.$news['news_id'];
|
$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'];
|
// $text = $comments['comment_form'] . $comments['comment'] .$comments['moderate'];
|
||||||
return e107::getRender()->tablerender($comments['caption'], $text,'comment', true);
|
return $text;
|
||||||
|
// return e107::getRender()->tablerender($comments['caption'], $text,'comment', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user