From 0cce47f15f21f59ec77de41c76cf13eb2b2f4f74 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 28 Sep 2001 16:20:55 +0000 Subject: - fixed small glitch in node_del() - fixed small glitch in comment_del() - changed the API of the form() function. The first parameter, the "action"-attribute in the
-tag has been made optional. By default, it will be set to "$REQUEST_URI". Why? Because in 98% of the cases we would do: global $REQUEST_URI; $form = form($REQUEST_URI, $form_content); while we can do: $form = form($form_content); now. Update your modules (and sorry for the inconvenience)! --- modules/poll/poll.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/poll/poll.module') diff --git a/modules/poll/poll.module b/modules/poll/poll.module index bd7d58f5a..6fedf8e5e 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -100,7 +100,7 @@ function poll_graph($val) { } function poll_view($node, $main = 0, $block = 0) { - global $theme, $op, $user, $chid, $REQUEST_URI; + global $theme, $op, $user, $chid; $pollop = $op; @@ -158,7 +158,7 @@ function poll_view($node, $main = 0, $block = 0) { } else { $output .= "     
" . form_submit("Vote") . "
" . $footer . "
"; } - $output = form($REQUEST_URI, $output); + $output = form($output); } @@ -170,7 +170,7 @@ function poll_view($node, $main = 0, $block = 0) { } function poll_form($edit = array(), $nocheck = 0) { - global $REQUEST_URI, $user; + global $user; $duration = array(0 => t("Unlimited"), 86400 => format_interval(86400), 172800 => format_interval(172800), 345600 => format_interval(345600), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200), 4838400 => format_interval(4838400), 9676800 => format_interval(9676800), 31536000 => format_interval(31536000)); $active = array(0 => "Closed", 1 => "Active"); @@ -220,7 +220,7 @@ function poll_form($edit = array(), $nocheck = 0) { $form .= form_submit(t("Submit")); } - return form($REQUEST_URI, $form); + return form($form); } function poll_save($edit) { -- cgit v1.2.3