From f86a944979de75225dc3ddd00920ebedbfe307ed Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sun, 12 May 2002 15:40:57 +0000 Subject: - applied Stevens link patch. - fixed block permissions. - fixed user admin page errors: http://www.drupal.org/node.php?id=173. - cleaned up common.inc a bit: removed format_info, path_img, field_merge. --- modules/poll.module | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'modules/poll.module') diff --git a/modules/poll.module b/modules/poll.module index c64bfebc9..9cb0bf20a 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -116,7 +116,7 @@ function poll_insert($node) { function poll_link($type) { if ($type == "menu.create" && user_access("post content")) { - $links[] = lm(t("create poll"), array("mod" => "node", "op" => "add", "type" => "poll"), t("Add a new poll.")); + $links[] = lm(t("create poll"), array("mod" => "node", "op" => "add", "type" => "poll"), "", array("title", t("Add a new poll."))); } return $links ? $links : array(); @@ -214,7 +214,7 @@ function poll_view(&$node, $main = 0, $block = 0) { if ($allowvotes) { // Display the vote form - $url = request_uri() . (strstr(request_uri(), "?") ? "&" : "?") ."pollid=". $pollidcount; + $url = request_uri() . (strstr(request_uri(), "?") ? "&" : "?") ."pollid=". $pollidcount; $output .= "
"; $output .= "
"; @@ -225,7 +225,8 @@ function poll_view(&$node, $main = 0, $block = 0) { } if ($block) { $output .= "
". form_submit(t("Vote")) ."
"; - } else { + } + else { $output .= "
   ". form_submit(t("Vote")) ."
"; } $output .= "
"; @@ -241,10 +242,10 @@ function poll_view(&$node, $main = 0, $block = 0) { $votesmax = max($votesmax, 1); // Define CSS classes for the bars - $output .= ""; + $output .= "\n"; foreach ($node->choice as $key => $value) { if ($value != "") { -- cgit v1.2.3