From 9a23223e253d95377123a9b4b49a54cc8cdbe744 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 21 Jan 2003 22:44:25 +0000 Subject: - Applied Ori's format_plural() patch; see mailing list for details. NOTE: some modules in the contributions repository might need to be updated. --- modules/poll.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/poll.module') diff --git a/modules/poll.module b/modules/poll.module index 90b23cda3..b4298f099 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -221,7 +221,7 @@ function poll_page() { $result = db_query("SELECT n.nid, n.title, p.active, SUM(c.chvotes) AS votes FROM node n LEFT JOIN poll p ON n.nid=p.nid LEFT JOIN poll_choices c ON n.nid=c.nid WHERE type = 'poll' AND status = '1' AND moderate = '0' GROUP BY n.nid, n.title, p.active, n.created ORDER BY n.created DESC"); $output = ""; $theme->box(t("Polls"), $output); @@ -328,7 +328,7 @@ function poll_view_results(&$node, $main, $block, $links) { $width = round($node->chvotes[$key] * 100 / $votesmax); $percentage = round($node->chvotes[$key] * 100 / max($votestotal, 1)); - $output .= "
$value
$percentage%". (!$block ? " (". format_plural($node->chvotes[$key], "vote", "votes") .")" : "") ."
"; + $output .= "
$value
$percentage%". (!$block ? " (". format_plural($node->chvotes[$key], "1 vote", "%count votes") .")" : "") ."
"; if ($width == 0) { $output .= "
 
"; } -- cgit v1.2.3