mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
avoid breaking change for other plugins by keeping $search_results
This commit is contained in:
committed by
Pierrick Le Gall
parent
c36ca8712d
commit
7a3d0f2d89
@@ -1427,8 +1427,12 @@ function get_quick_search_results_no_cache($q, $options)
|
||||
|
||||
$search_results['qs']['matching_tags'] = $qsr->all_tags;
|
||||
$search_results['qs']['matching_cats'] = $qsr->all_cats;
|
||||
$ids = trigger_change('qsearch_results', $ids, $expression, $qsr);
|
||||
|
||||
$search_results = trigger_change('qsearch_results', $search_results, $expression, $qsr);
|
||||
if(isset($search_results['items']))
|
||||
{
|
||||
$ids=array_merge($ids,$search_results['items']);
|
||||
}
|
||||
|
||||
global $template;
|
||||
|
||||
if (empty($ids))
|
||||
|
||||
Reference in New Issue
Block a user