aboutsummaryrefslogtreecommitdiffstats
path: root/admin/rating_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/rating_user.php')
-rw-r--r--admin/rating_user.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/rating_user.php b/admin/rating_user.php
index e42afe39a..bcffa3df7 100644
--- a/admin/rating_user.php
+++ b/admin/rating_user.php
@@ -101,14 +101,14 @@ while ($row = pwg_db_fetch_assoc($result))
$image_urls = array();
if (count($image_ids) > 0 )
{
- $query = 'SELECT id, name, file, path, tn_ext
+ $query = 'SELECT id, name, file, path, representative_ext
FROM '.IMAGES_TABLE.'
WHERE id IN ('.implode(',', array_keys($image_ids)).')';
$result = pwg_query($query);
while ($row = pwg_db_fetch_assoc($result))
{
$image_urls[ $row['id'] ] = array(
- 'tn' => get_thumbnail_url($row),
+ 'tn' => DerivativeImage::thumb_url($row),
'page' => make_picture_url( array('image_id'=>$row['id'], 'image_file'=>$row['file']) ),
);
}
@@ -217,7 +217,7 @@ $template->assign( array(
'available_rates' => $conf['rate_items'],
'ratings' => $by_user_ratings,
'image_urls' => $image_urls,
- 'TN_WIDTH' => 20+2*$conf['upload_form_thumb_maxwidth'],
+ 'TN_WIDTH' => 28+2*ImageStdParams::get_by_type(IMG_THUMB)->sizing->ideal_size[0],
) );
$template->set_filename('rating', 'rating_user.tpl');
$template->assign_var_from_handle('ADMIN_CONTENT', 'rating');