mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
#4048 - Search results #id are unique and output fixes for legacy search handler
This commit is contained in:
@@ -48,7 +48,7 @@ foreach ($search_prefs['comments_handlers'] as $h_key => $value) {
|
|||||||
|
|
||||||
$search_fields = array('c.comment_comment', 'c.comment_author_name');
|
$search_fields = array('c.comment_comment', 'c.comment_author_name');
|
||||||
$weights = array('1.2', '0.6');
|
$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;
|
$where = "comment_type IN (".implode(',', $in).") AND".$advanced_where;
|
||||||
$order = array('comment_datestamp' => 'DESC');
|
$order = array('comment_datestamp' => 'DESC');
|
||||||
$table = "comments AS c ".implode(' ', $join);
|
$table = "comments AS c ".implode(' ', $join);
|
||||||
|
@@ -817,8 +817,8 @@ class search_front extends e_shortcode
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// print_a($ps);
|
// print_a($ps);
|
||||||
|
$idkey = str_replace('_', '-', $key);
|
||||||
$text .= '<ul id="search-results" class="list-unstyled search-block">';
|
$text .= '<ul id="search-results-'.$idkey.'" class="list-unstyled search-block">';
|
||||||
$text .= $ps['text'];
|
$text .= $ps['text'];
|
||||||
$text .= '</ul>';
|
$text .= '</ul>';
|
||||||
$results = $ps['results'];
|
$results = $ps['results'];
|
||||||
|
Reference in New Issue
Block a user