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/search.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/search.module')
-rw-r--r-- | modules/search.module | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/search.module b/modules/search.module index beb30565e..559c4bf51 100644 --- a/modules/search.module +++ b/modules/search.module @@ -22,7 +22,7 @@ function search_item($item, $type) { } function search_page() { - global $theme, $edit, $type, $keys, $REQUEST_URI; + global $theme, $edit, $type, $keys; if (user_access("search content")) { @@ -37,7 +37,6 @@ function search_page() { ** Construct the search form: */ - $form .= "<form action=\"$REQUEST_URI\" method=\"POST\">"; $form .= " <input size=\"50\" value=\"". check_form($keys) ."\" name=\"keys\" type=\"text\">"; $form .= " <input type=\"submit\" value=\"". t("Search") ."\"><br />"; $form .= t("Restrict search to") .": "; @@ -48,7 +47,7 @@ function search_page() { } } - $form .= "</form>\n"; + $form = form($form); /* ** Collect the search results: |