diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-10-13 15:40:14 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-10-13 15:40:14 +0000 |
commit | 1e6e762643273efd9cf012e68006fa57ee1b22a3 (patch) | |
tree | dc8f93031460fdc8ccb2cf00705e1ff4e4ba176f /index.php | |
parent | cb118782331ff5450cb2424c96c4e582b3cc672d (diff) |
feature 2760: allow tag exclusion in quick search
git-svn-id: http://piwigo.org/svn/trunk@18636 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | index.php | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -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[] = - '<a href="' . make_index_url(array('tags'=>array($tag))) . '">' - .trigger_event('render_tag_name', $tag['name']) - .'</a>'; - } - $template->assign( 'tag_search_results', $hints); + $tag['URL'] = make_index_url(array('tags'=>array($tag))); + $template->append( 'tag_search_results', $tag); } } |