aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php14
1 files changed, 3 insertions, 11 deletions
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[] =
- '<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);
}
}