Index: modules/poll.module =================================================================== RCS file: /cvs/drupal/drupal/modules/poll.module,v retrieving revision 1.197 diff -u -F^f -r1.197 poll.module --- modules/poll.module 29 May 2006 16:04:41 -0000 1.197 +++ modules/poll.module 30 May 2006 03:40:34 -0000 @@ -362,12 +362,12 @@ function poll_view_results(&$node, $teas } } - $output .= theme('poll_results', check_plain($node->title), $poll_results, $total_votes, $node->links, $block, $node->nid, $node->vote); + $output .= theme('poll_results', check_plain($node->title), $poll_results, $total_votes, $node->links, $block, $node->nid, $node->vote, $node->choice[$node->vote]['chtext']); return $output; } -function theme_poll_results($title, $results, $votes, $links, $block, $nid, $vote) { +function theme_poll_results($title, $results, $votes, $links, $block, $nid, $vote, $vote_str) { if ($block) { $output .= '
'; $output .= '
'. $title .'
'; @@ -381,6 +381,7 @@ function theme_poll_results($title, $res $output .= $results; $output .= '
'. t('Total votes: %votes', array('%votes' => $votes)) .'
'; if (isset($vote) && $vote > -1) { + $output .= '
'. t('Your vote: %vote', array('%vote' => theme('placeholder', $vote_str))); if (user_access('cancel own vote')) { $form['#action'] = url("poll/cancel/$nid"); $form['choice'] = array('#type' => 'hidden', '#value' => $vote);