mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Replace comments form and listing with 'compose_comment' method, fix comments container html validation error
This commit is contained in:
@@ -82,23 +82,7 @@ if(e_QUERY)
|
||||
|
||||
}
|
||||
*/
|
||||
$query = "SELECT c.*, u.* FROM #comments AS c
|
||||
LEFT JOIN #user AS u ON c.comment_author_id = u.user_id
|
||||
WHERE comment_item_id=".intval($row['poll_id'])." AND comment_type='4' ORDER BY comment_datestamp";
|
||||
|
||||
if ($comment_total = $sql->gen($query))
|
||||
{
|
||||
$text .= "<hr /><ul class='media-list' id='comments-container'>";
|
||||
|
||||
while ($row2 = $sql->fetch())
|
||||
{
|
||||
$text .= e107::getComment()->render_comment($row2, 'poll', 'comment');
|
||||
}
|
||||
$text .= "</ul>";
|
||||
}
|
||||
|
||||
|
||||
// $text .= "</table>";
|
||||
$text .= e107::getComment()->compose_comment('poll', 'comment', intval( $row['poll_id'] ), null, '', false, 'html');
|
||||
$ns->tablerender(LAN_PLUGIN_POLL_NAME." #".$row['poll_id'], $text);
|
||||
echo "<hr />";
|
||||
}
|
||||
|
Reference in New Issue
Block a user