1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

#4048 - Search results #id are unique and output fixes for legacy search handler

This commit is contained in:
Moc
2021-02-02 21:20:21 +01:00
parent 89d5f11c74
commit a9ebe4b4a0
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ foreach ($search_prefs['comments_handlers'] as $h_key => $value) {
$search_fields = array('c.comment_comment', 'c.comment_author_name');
$weights = array('1.2', '0.6');
$no_results = LAN_198;
$no_results = "<div class='alert alert-danger'>".LAN_198."</div>"; //LAN_198;
$where = "comment_type IN (".implode(',', $in).") AND".$advanced_where;
$order = array('comment_datestamp' => 'DESC');
$table = "comments AS c ".implode(' ', $join);

View File

@@ -817,8 +817,8 @@ class search_front extends e_shortcode
// }
// print_a($ps);
$text .= '<ul id="search-results" class="list-unstyled search-block">';
$idkey = str_replace('_', '-', $key);
$text .= '<ul id="search-results-'.$idkey.'" class="list-unstyled search-block">';
$text .= $ps['text'];
$text .= '</ul>';
$results = $ps['results'];