summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-02 12:15:37 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-02 12:15:37 +0000
commit604064b52395da6713b6e579f7d2d0ad219b8148 (patch)
tree99df1548850b3ead7492c2b5fd6552209ee46e16
parent01d17d4aca6efeb0eee54b5a62dd2da348f92a2f (diff)
downloadbrdo-604064b52395da6713b6e579f7d2d0ad219b8148.tar.gz
brdo-604064b52395da6713b6e579f7d2d0ad219b8148.tar.bz2
- Patch #4858: search module did not remember the search filter. Patch by
Kjartan.
-rw-r--r--includes/common.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 144a822bd..b631288b9 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -310,6 +310,8 @@ function search_item($item, $type) {
* to", help text, etc).
*/
function search_form($action = NULL, $keys = NULL, $options = NULL) {
+ $edit = $_POST['edit'];
+
if (!$action) {
$action = url("search");
}
@@ -346,7 +348,7 @@ function search_data($keys = NULL) {
$output .= "<p><strong>". t("Matching %names ranked in order of relevance:", array("%name" => $name)) ."</strong></p>";
}
else {
- $output .= "<p><strong>". t("Matching $names") .":</strong></p>";
+ $output .= "<p><strong>". t("Matching {$name}s") .":</strong></p>";
}
foreach ($result as $entry) {
$output .= search_item($entry, $name);