diff options
author | PayBas <contact@paybas.com> | 2014-04-06 22:18:52 +0200 |
---|---|---|
committer | PayBas <contact@paybas.com> | 2014-04-06 22:18:52 +0200 |
commit | b64c5f84abf64a040b5d81b1ab7a214676039c19 (patch) | |
tree | ee8b35ea175069ce72e4e84fd57d7f07bcf781c9 /phpBB/viewtopic.php | |
parent | 3384e87b6f1f6ba3532257585392a8b7e1034a18 (diff) | |
download | forums-b64c5f84abf64a040b5d81b1ab7a214676039c19.tar forums-b64c5f84abf64a040b5d81b1ab7a214676039c19.tar.gz forums-b64c5f84abf64a040b5d81b1ab7a214676039c19.tar.bz2 forums-b64c5f84abf64a040b5d81b1ab7a214676039c19.tar.xz forums-b64c5f84abf64a040b5d81b1ab7a214676039c19.zip |
[ticket/12363] changed _winner_ to _most-votes_
PHPBB3-12363
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 422ca1d12f..e7358d682d 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -864,7 +864,7 @@ if (!empty($topic_data['poll_start'])) $option_pct_txt = sprintf("%.1d%%", round($option_pct * 100)); $option_pct_rel = ($poll_most > 0) ? $poll_option['poll_option_total'] / $poll_most : 0; $option_pct_rel_txt = sprintf("%.1d%%", round($option_pct_rel * 100)); - $option_winner = ($poll_option['poll_option_total'] > 0 && $poll_option['poll_option_total'] == $poll_most) ? true : false; + $option_most_votes = ($poll_option['poll_option_total'] > 0 && $poll_option['poll_option_total'] == $poll_most) ? true : false; $template->assign_block_vars('poll_option', array( 'POLL_OPTION_ID' => $poll_option['poll_option_id'], @@ -875,7 +875,7 @@ if (!empty($topic_data['poll_start'])) 'POLL_OPTION_PCT' => round($option_pct * 100), 'POLL_OPTION_WIDTH' => round($option_pct * 250), 'POLL_OPTION_VOTED' => (in_array($poll_option['poll_option_id'], $cur_voted_id)) ? true : false, - 'POLL_OPTION_WINNER' => $option_winner, + 'POLL_OPTION_MOST_VOTES' => $option_most_votes, )); } |