diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-08-15 02:06:06 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-08-15 02:06:06 +0000 |
commit | 48c6d7e8a4d5b44a6c5c6fa919267d098ed28ee7 (patch) | |
tree | 3db23f90be4b39dbe3f25aef0df3c56774106fca /include/menubar.inc.php | |
parent | bc1f5319b151c22cd0bed853fc940617e700a29f (diff) |
feature 519: quick search (first version)
git-svn-id: http://piwigo.org/svn/trunk@1537 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rwxr-xr-x | include/menubar.inc.php | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/include/menubar.inc.php b/include/menubar.inc.php index 822f19fec..971b32782 100755 --- a/include/menubar.inc.php +++ b/include/menubar.inc.php @@ -76,20 +76,8 @@ if ('tags' == $page['section']) if ( !empty($page['items']) ) { - $query = ' -SELECT tag_id, name, url_name, count(*) counter - FROM '.IMAGE_TAG_TABLE.' - INNER JOIN '.TAGS_TABLE.' ON tag_id = id - WHERE image_id IN ('.implode(',', $items).') - AND tag_id NOT IN ('.implode(',', $page['tag_ids']).') - GROUP BY tag_id - ORDER BY name ASC -;'; - $result = pwg_query($query); - while($row = mysql_fetch_array($result)) - { - array_push($tags, $row); - } + $tags = get_common_tags($page['items'], + $conf['menubar_tag_cloud_items_number'], $page['tag_ids']); } $tags = add_level_to_tags($tags); @@ -269,6 +257,7 @@ $template->assign_block_vars( 'REL'=> 'rel="search"' ) ); +$template->assign_block_vars( 'summary.quick_search', array() ); // comments link $template->assign_block_vars( |