Changeset 12917 for trunk/include


Ignore:
Timestamp:
Jan 17, 2012, 10:02:16 PM (12 years ago)
Author:
rvelices
Message:

feature 2548 multisize - implement delete_element_derivatives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_notification.inc.php

    r12796 r12917  
    33// | Piwigo - a PHP based photo gallery                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2011 Piwigo Team                  http://piwigo.org |
     5// | Copyright(C) 2008-2012 Piwigo Team                  http://piwigo.org |
    66// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    77// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
     
    459459    { // get some thumbnails ...
    460460      $query = '
    461 SELECT DISTINCT id, path, name, representative_ext, file
     461SELECT DISTINCT i.*
    462462  FROM '.IMAGES_TABLE.' i INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id=image_id
    463463  '.$where_sql.'
    464464    AND date_available=\''.$dates[$i]['date_available'].'\'
    465     AND tn_ext IS NOT NULL
    466465  ORDER BY '.DB_RANDOM_FUNCTION.'()
    467466  LIMIT '.$max_elements.'
Note: See TracChangeset for help on using the changeset viewer.