From 753f58d6a966a1051dcd62a3eeab8fc18798bcac Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 27 Dec 2011 05:26:44 +0000 Subject: feature 2541 multisize - core implementation + usage on most public/admin pages - still to do: sync process, upload, gui/persistence for size parameters, migration script, center of interest ... git-svn-id: http://piwigo.org/svn/trunk@12796 68402e56-0260-453c-a942-63ccdbb3a9ee --- comments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'comments.php') diff --git a/comments.php b/comments.php index 83b9b0f68..b75dc190b 100644 --- a/comments.php +++ b/comments.php @@ -408,7 +408,7 @@ if (count($comments) > 0) // retrieving element informations $elements = array(); $query = ' -SELECT id, name, file, path, tn_ext +SELECT id, name, file, path, representative_ext FROM '.IMAGES_TABLE.' WHERE id IN ('.implode(',', $element_ids).') ;'; @@ -450,7 +450,7 @@ SELECT c.id, name, permalink, uppercats, com.id as comment_id } // source of the thumbnail picture - $thumbnail_src = get_thumbnail_url( $elements[$comment['image_id']] ); + $thumbnail_src = DerivativeImage::thumb_url( $elements[$comment['image_id']] ); // link to the full size picture $url = make_picture_url( -- cgit v1.2.3