diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-09-28 16:20:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-09-28 16:20:55 +0000 |
commit | 0cce47f15f21f59ec77de41c76cf13eb2b2f4f74 (patch) | |
tree | 73dacf3105fb598058714ccad769e3b86b8b558f /modules/poll/poll.module | |
parent | 17c921259f61daac6cc0d10ea145d6882ea89514 (diff) | |
download | brdo-0cce47f15f21f59ec77de41c76cf13eb2b2f4f74.tar.gz brdo-0cce47f15f21f59ec77de41c76cf13eb2b2f4f74.tar.bz2 |
- 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 <form>-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)!
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r-- | modules/poll/poll.module | 8 |
1 files changed, 4 insertions, 4 deletions
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 .= "</td><td> </td><td align=\"center\"><br><div align=\"center\">" . form_submit("Vote") . "<br>" . $footer . "</div></td></tr></table>"; } - $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) { |