From 70f5b8649bbd6c7d115fbbf9c1976d9f82b4e8d4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 14 Apr 2003 18:44:59 +0000 Subject: A batch of changes: - Renamed '---' to ''. - Removed hard-coded call to the statistics module from the node module. Patch by Gerhard. - Removed tables from poll module. Modified patch by Al. Changes to Al's patch are: "polltext" -> "poll-text" "pollfg" -> "poll-foreground" "pollbg" -> "poll-background" - Changed some 'statistics.foo's to 's.foo's. Patch by Gary. [If this closes any bug reports, please update them on drupal.org.] --- modules/poll.module | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'modules/poll.module') diff --git a/modules/poll.module b/modules/poll.module index 8538bf4a6..cb8710132 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -303,16 +303,10 @@ 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], "1 vote", "%count votes") .")" : "") ."
"; - if ($width == 0) { - $output .= "
 
"; - } - else if ($width == 100) { - $output .= "
 
"; - } - else { - $output .= "
  
"; - } + $output .= "
$value
"; + $output .= "
"; + $output .= "
"; + $output .= "
$percentage%". (!$block ? " (". format_plural($node->chvotes[$key], "1 vote", "%count votes") .")" : "") ."
"; } } } -- cgit v1.2.3