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)! --- includes/common.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index f06206610..256beb34c 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -244,8 +244,10 @@ function format_tag($link, $text) { return "''. ('$text' ? '$text' : '$link') .''"; } -function form($action, $form, $method = "post", $options = 0) { - return "\n$form
\n"; +function form($form, $method = "post", $action = 0, $options = 0) { + global $REQUEST_URI; + + return "
\n$form
\n"; } function form_item($title, $value, $description = 0) { -- cgit v1.2.3