diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-01-17 21:02:16 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-01-17 21:02:16 +0000 |
commit | c6265c515df3901e3ce4d2e0f006de84dc7d2ebc (patch) | |
tree | 84c327912cfc9293b633ed8537247bb580a35f36 /include | |
parent | 89933672f26976d5313c5fedda8bef38db7d2c9e (diff) |
feature 2548 multisize - implement delete_element_derivatives
git-svn-id: http://piwigo.org/svn/trunk@12917 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_notification.inc.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/functions_notification.inc.php b/include/functions_notification.inc.php index 06b9ce543..412d542d8 100644 --- a/include/functions_notification.inc.php +++ b/include/functions_notification.inc.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2011 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ @@ -458,11 +458,10 @@ SELECT date_available, if ($max_elements>0) { // get some thumbnails ... $query = ' -SELECT DISTINCT id, path, name, representative_ext, file +SELECT DISTINCT i.* FROM '.IMAGES_TABLE.' i INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id=image_id '.$where_sql.' AND date_available=\''.$dates[$i]['date_available'].'\' - AND tn_ext IS NOT NULL ORDER BY '.DB_RANDOM_FUNCTION.'() LIMIT '.$max_elements.' ;'; |