aboutsummaryrefslogtreecommitdiffstats
path: root/admin/rating.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/rating.php')
-rw-r--r--admin/rating.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/admin/rating.php b/admin/rating.php
index 01a93aecd..9007faa8d 100644
--- a/admin/rating.php
+++ b/admin/rating.php
@@ -212,22 +212,15 @@ SELECT i.id,
$images = array();
$result = pwg_query($query);
-while ($row = mysql_fetch_array($result))
+while ($row = mysql_fetch_assoc($result))
{
array_push($images, $row);
}
foreach ($images as $image)
{
- $thumbnail_src = get_thumbnail_src($image['path'], $image['tn_ext']);
+ $thumbnail_src = get_thumbnail_url($image);
- /*$image_url = make_picture_url(
- array(
- 'category' => $image['storage_category_id'],
- 'image_id' => $image['id'],
- 'image_file' => $image['file'],
- )
- );*/
$image_url = PHPWG_ROOT_PATH.'admin.php?page=picture_modify'.
'&image_id='.$image['id'];