Commit 604064b5 authored by Dries's avatar Dries

- Patch #4858: search module did not remember the search filter.  Patch by
  Kjartan.
parent 01d17d4a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment