diff --git a/e107_plugins/poll/oldpolls.php b/e107_plugins/poll/oldpolls.php index 59d0b4800..3a9aebd6e 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 .= "
"; - - while ($row2 = $sql->fetch()) - { - $text .= e107::getComment()->render_comment($row2, 'poll', 'comment'); - } - $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 "
"; }