mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
avoid breaking change for other plugins by keeping $search_results
This commit is contained in:
parent
c36ca8712d
commit
7a3d0f2d89
1 changed files with 6 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue