From eca9fb87aeb87b2d9fb188f3a6cac2935ccbd186 Mon Sep 17 00:00:00 2001 From: "Arun S. Sekher" Date: Sat, 10 Jun 2017 22:01:41 +0400 Subject: [PATCH] Replace comments form and listing with 'compose_comment' method, fix comments container html validation error --- e107_plugins/poll/oldpolls.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/e107_plugins/poll/oldpolls.php b/e107_plugins/poll/oldpolls.php index 193f71966..9a9e6d768 100644 --- a/e107_plugins/poll/oldpolls.php +++ b/e107_plugins/poll/oldpolls.php @@ -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 .= "
"; - } - - - // $text .= ""; + $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 "
"; }