mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +02:00
Poll ended at....
git-svn-id: file:///svn/phpbb/trunk@6307 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
56d517d1be
commit
49d56f90e5
@ -71,6 +71,7 @@ $lang = array_merge($lang, array(
|
||||
'NO_UNREAD_POSTS' => 'There are no new unread posts for this topic.',
|
||||
'NO_VOTE_OPTION' => 'You must specify an option when voting.',
|
||||
|
||||
'POLL_ENDED_AT' => 'Poll ended at %s',
|
||||
'POLL_RUN_TILL' => 'Poll runs till %s',
|
||||
'POLL_VOTED_OPTION' => 'You voted for this option',
|
||||
'POST_ENCODING' => 'This post by <strong>%1$s</strong> was made in a character set different to yours. %2$sView this post in its proper encoding%3$s.',
|
||||
|
@ -755,6 +755,8 @@ if (!empty($topic_data['poll_start']))
|
||||
);
|
||||
}
|
||||
|
||||
$poll_end = $topic_data['poll_length'] + $topic_data['poll_start'];
|
||||
|
||||
$template->assign_vars(array(
|
||||
'POLL_QUESTION' => $topic_data['poll_title'],
|
||||
'TOTAL_VOTES' => $poll_total,
|
||||
@ -762,7 +764,7 @@ if (!empty($topic_data['poll_start']))
|
||||
'POLL_RIGHT_CAP_IMG'=> $user->img('poll_right'),
|
||||
|
||||
'L_MAX_VOTES' => ($topic_data['poll_max_options'] == 1) ? $user->lang['MAX_OPTION_SELECT'] : sprintf($user->lang['MAX_OPTIONS_SELECT'], $topic_data['poll_max_options']),
|
||||
'L_POLL_LENGTH' => ($topic_data['poll_length']) ? sprintf($user->lang['POLL_RUN_TILL'], $user->format_date($topic_data['poll_length'] + $topic_data['poll_start'])) : '',
|
||||
'L_POLL_LENGTH' => ($topic_data['poll_length']) ? sprintf($user->lang[($poll_end > time()) ? 'POLL_RUN_TILL' : 'POLL_ENDED_AT'], $user->format_date($poll_end)) : '',
|
||||
|
||||
'S_HAS_POLL' => true,
|
||||
'S_CAN_VOTE' => $s_can_vote,
|
||||
@ -773,7 +775,7 @@ if (!empty($topic_data['poll_start']))
|
||||
'U_VIEW_RESULTS' => $viewtopic_url . '&view=viewpoll')
|
||||
);
|
||||
|
||||
unset($poll_info, $voted_id);
|
||||
unset($poll_end, $poll_info, $voted_id);
|
||||
}
|
||||
|
||||
// If the user is trying to reach the second half of the topic, fetch it starting from the end
|
||||
|
Loading…
x
Reference in New Issue
Block a user