Changeset 8726 for trunk/include/section_init.inc.php
- Timestamp:
- Jan 17, 2011, 10:16:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/section_init.inc.php
r8665 r8726 322 322 $items = get_image_ids_for_tags($page['tag_ids']); 323 323 324 // permissions depends on category, so to only keep images that are325 // reachable to the connected user, we need to check category326 // associations327 if (!empty($items) )328 {329 $query = '330 SELECT DISTINCT image_id331 FROM '.IMAGE_CATEGORY_TABLE.' INNER JOIN '.IMAGES_TABLE.' ON image_id=id332 WHERE image_id IN ('.implode(',', $items).')333 '.$forbidden.334 $conf['order_by'].'335 ;';336 $items = array_from_query($query, 'image_id');337 }338 339 324 $page = array_merge( 340 325 $page,
Note: See TracChangeset
for help on using the changeset viewer.