Changeset 1537 for trunk/include/menubar.inc.php
- Timestamp:
- Aug 15, 2006, 4:06:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/menubar.inc.php
r1511 r1537 77 77 if ( !empty($page['items']) ) 78 78 { 79 $query = ' 80 SELECT tag_id, name, url_name, count(*) counter 81 FROM '.IMAGE_TAG_TABLE.' 82 INNER JOIN '.TAGS_TABLE.' ON tag_id = id 83 WHERE image_id IN ('.implode(',', $items).') 84 AND tag_id NOT IN ('.implode(',', $page['tag_ids']).') 85 GROUP BY tag_id 86 ORDER BY name ASC 87 ;'; 88 $result = pwg_query($query); 89 while($row = mysql_fetch_array($result)) 90 { 91 array_push($tags, $row); 92 } 79 $tags = get_common_tags($page['items'], 80 $conf['menubar_tag_cloud_items_number'], $page['tag_ids']); 93 81 } 94 82 … … 270 258 ) 271 259 ); 260 $template->assign_block_vars( 'summary.quick_search', array() ); 272 261 273 262 // comments link
Note: See TracChangeset
for help on using the changeset viewer.