Ignore:
Timestamp:
Jan 19, 2011, 10:53:58 PM (13 years ago)
Author:
rvelices
Message:

rv_gmaps prepare for core 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/include/functions_map.php

    r3447 r8776  
    477477  else if ('tags' == $page['section'])
    478478  {
    479     $items = get_image_ids_for_tags( array($page['tags'][0]['id']) );
     479    $items = get_image_ids_for_tags( array($page['tags'][0]['id']), 'AND', $where_sql_images_only, 'ORDER BY NULL' );
    480480    if ( !empty($items) )
    481481    {
     
    483483SELECT '.$img_fields.'
    484484  FROM '.IMAGE_CATEGORY_TABLE.' INNER JOIN '.IMAGES_TABLE.' i ON i.id=image_id
    485   WHERE '.$where_sql.'
    486     AND image_id IN ('.implode(',', $items).')'
     485  WHERE image_id IN ('.implode(',', $items).')'
    487486  .$group_by.'
    488487  '.$conf['order_by'];
Note: See TracChangeset for help on using the changeset viewer.