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:
@@ -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);
|
||||
|
@@ -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'];
|
||||
|
Reference in New Issue
Block a user