Changeset 18636 for trunk/index.php


Ignore:
Timestamp:
Oct 13, 2012, 5:40:14 PM (12 years ago)
Author:
rvelices
Message:

feature 2760: allow tag exclusion in quick search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r18462 r18636  
    227227
    228228  $tags = (array)@$page['qsearch_details']['matching_tags'];
    229   if (count($tags))
    230   {
    231     usort($tags, 'name_compare');
    232     $hints = array();
    233     foreach ( $tags as $tag )
    234     {
    235       $hints[] =
    236         '<a href="' . make_index_url(array('tags'=>array($tag))) . '">'
    237         .trigger_event('render_tag_name', $tag['name'])
    238         .'</a>';
    239     }
    240     $template->assign( 'tag_search_results', $hints);
     229  foreach ( $tags as $tag )
     230  {
     231    $tag['URL'] = make_index_url(array('tags'=>array($tag)));
     232    $template->append( 'tag_search_results', $tag);
    241233  }
    242234}
Note: See TracChangeset for help on using the changeset viewer.