summaryrefslogtreecommitdiff
path: root/includes/search.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-09-28 16:20:55 +0000
committerDries Buytaert <dries@buytaert.net>2001-09-28 16:20:55 +0000
commit0cce47f15f21f59ec77de41c76cf13eb2b2f4f74 (patch)
tree73dacf3105fb598058714ccad769e3b86b8b558f /includes/search.inc
parent17c921259f61daac6cc0d10ea145d6882ea89514 (diff)
downloadbrdo-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 'includes/search.inc')
-rw-r--r--includes/search.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/search.inc b/includes/search.inc
index e05b527d6..801fa037e 100644
--- a/includes/search.inc
+++ b/includes/search.inc
@@ -1,14 +1,11 @@
<?php
function search_form($keys) {
- global $REQUEST_URI;
- $output .= "<form action=\"$REQUEST_URI\" method=\"POST\">\n";
$output .= " <input size=\"50\" value=\"". check_form($keys) ."\" name=\"keys\">";
$output .= " <input type=\"submit\" value=\"". t("Search") ."\">\n";
- $output .= "</form>\n";
- return $output;
+ return form($output);
}
function search_data($keys, $type) {