aboutsummaryrefslogtreecommitdiffstats
path: root/include/menubar.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xinclude/menubar.inc.php17
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(