diff options
Diffstat (limited to '')
-rw-r--r-- | include/category_subcats.inc.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/category_subcats.inc.php b/include/category_subcats.inc.php index 53e4f7f0d..6fe0eece7 100644 --- a/include/category_subcats.inc.php +++ b/include/category_subcats.inc.php @@ -64,7 +64,7 @@ SELECT representative_picture_id $row = mysql_fetch_array(pwg_query($query)); $query = ' -SELECT file,tn_ext,storage_category_id +SELECT file,path,tn_ext FROM '.IMAGES_TABLE.', '.IMAGE_CATEGORY_TABLE.' WHERE category_id = '.$non_empty_id.' AND id = image_id'; @@ -86,8 +86,7 @@ SELECT file,tn_ext,storage_category_id $image_result = pwg_query($query); $image_row = mysql_fetch_array($image_result); - $thumbnail_link = get_thumbnail_src($image_row['file'], - $image_row['storage_category_id'], + $thumbnail_link = get_thumbnail_src($image_row['path'], @$image_row['tn_ext']); $thumbnail_title = $lang['hint_category']; |