diff --git a/styles/templates/default/viewtopic_poll.tpl b/styles/templates/default/viewtopic_poll.tpl index a6d63995..02fe6074 100644 --- a/styles/templates/default/viewtopic_poll.tpl +++ b/styles/templates/default/viewtopic_poll.tpl @@ -127,8 +127,10 @@ function html2text (str)
+
[ {L_SUBMIT_VOTE} ]
+
[ {L_NEW_POLL_END} ]
diff --git a/viewtopic.php b/viewtopic.php index fe8c8522..01d78ec2 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -538,7 +538,7 @@ $sel_post_order_ary = array( $lang['NEWEST_FIRST'] => 'desc', ); -$topic_has_poll = ($t_data['topic_vote'] && !IS_GUEST); +$topic_has_poll = ($t_data['topic_vote']); $poll_time_expired = ($t_data['topic_time'] < TIMENOW - $bb_cfg['poll_max_days']*86400); $can_manage_poll = ($t_data['topic_poster'] == $userdata['user_id'] || $is_auth['auth_mod']); $can_add_poll = ($can_manage_poll && !$topic_has_poll && !$poll_time_expired && !$start);