Skip to content
Snippets Groups Projects
Commit 162ca6eb authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Bugfix: the search result type names (node, user, comment) were not
  translatable in the search page output.  Patch by Gabor.
parent b405fa22
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -365,7 +365,7 @@ function search_item($item, $type) { ...@@ -365,7 +365,7 @@ function search_item($item, $type) {
} }
else { else {
$output .= " <b><u><a href=\"". $item["link"] ."\">". $item["title"] ."</a></u></b><br />"; $output .= " <b><u><a href=\"". $item["link"] ."\">". $item["title"] ."</a></u></b><br />";
$output .= " <small>$type ". ($item["user"] ? " - ". $item["user"] : "") ."". ($item["date"] ? " - ". format_date($item["date"], "small") : "") ."</small>"; $output .= " <small>" . t($type) . ($item["user"] ? " - ". $item["user"] : "") ."". ($item["date"] ? " - ". format_date($item["date"], "small") : "") ."</small>";
$output .= "<br /><br />"; $output .= "<br /><br />";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment