From 1e6e762643273efd9cf012e68006fa57ee1b22a3 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sat, 13 Oct 2012 15:40:14 +0000 Subject: feature 2760: allow tag exclusion in quick search git-svn-id: http://piwigo.org/svn/trunk@18636 68402e56-0260-453c-a942-63ccdbb3a9ee --- index.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 3f1848504..cf90451bc 100644 --- a/index.php +++ b/index.php @@ -226,18 +226,10 @@ if ( $page['section']=='search' and $page['start']==0 and } $tags = (array)@$page['qsearch_details']['matching_tags']; - if (count($tags)) + foreach ( $tags as $tag ) { - usort($tags, 'name_compare'); - $hints = array(); - foreach ( $tags as $tag ) - { - $hints[] = - '' - .trigger_event('render_tag_name', $tag['name']) - .''; - } - $template->assign( 'tag_search_results', $hints); + $tag['URL'] = make_index_url(array('tags'=>array($tag))); + $template->append( 'tag_search_results', $tag); } } -- cgit v1.2.3