aboutsummaryrefslogtreecommitdiffstats
path: root/comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'comments.php')
-rw-r--r--comments.php4
1 files changed, 2 insertions, 2 deletions
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(