summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2002-05-21 11:50:00 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2002-05-21 11:50:00 +0000
commitf1f458ddf029cdcd0a3de4312c9dc28ac9030804 (patch)
treec6c0957f97a1d97d225f72e10352090b1004288c /modules
parent52bfb7105af1b460c16b145043488ee022c1614a (diff)
downloadbrdo-f1f458ddf029cdcd0a3de4312c9dc28ac9030804.tar.gz
brdo-f1f458ddf029cdcd0a3de4312c9dc28ac9030804.tar.bz2
Poll.module:
Cosmetical bugfix, "1 vote" instead of "1 votes" (using format_plural)
Diffstat (limited to 'modules')
-rw-r--r--modules/poll.module2
-rw-r--r--modules/poll/poll.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/poll.module b/modules/poll.module
index e679549b5..687265a6c 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -256,7 +256,7 @@ function poll_view(&$node, $main = 0, $block = 0) {
$width = round($node->chvotes[$key] * 100 / $votesmax);
$percentage = round($node->chvotes[$key] * 100 / max($votestotal, 1));
- $output .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"95%\" align=\"center\"><tr><td>$value</td><td><div align=\"right\"> $percentage%". (!$block ? " (". $node->chvotes[$key] ." votes)" : "") ."</div></td></tr></table>";
+ $output .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"95%\" align=\"center\"><tr><td>$value</td><td><div align=\"right\"> $percentage%". (!$block ? " (". format_plural($node->chvotes[$key], "vote", "votes") .")" : "") ."</div></td></tr></table>";
if ($width == 0) {
$output .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"95%\" align=\"center\"><tr><td class=\"pollbg\" width=\"100%\">&nbsp;</td></tr></table>";
}
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index e679549b5..687265a6c 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -256,7 +256,7 @@ function poll_view(&$node, $main = 0, $block = 0) {
$width = round($node->chvotes[$key] * 100 / $votesmax);
$percentage = round($node->chvotes[$key] * 100 / max($votestotal, 1));
- $output .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"95%\" align=\"center\"><tr><td>$value</td><td><div align=\"right\"> $percentage%". (!$block ? " (". $node->chvotes[$key] ." votes)" : "") ."</div></td></tr></table>";
+ $output .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"95%\" align=\"center\"><tr><td>$value</td><td><div align=\"right\"> $percentage%". (!$block ? " (". format_plural($node->chvotes[$key], "vote", "votes") .")" : "") ."</div></td></tr></table>";
if ($width == 0) {
$output .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"95%\" align=\"center\"><tr><td class=\"pollbg\" width=\"100%\">&nbsp;</td></tr></table>";
}