mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 01:32:59 +02:00
completely replaced get_thumbnail_src it get_thumbnail_url
or get_thumbnail_path git-svn-id: http://piwigo.org/svn/trunk@1609 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -388,12 +388,12 @@ if ($category['nb_images'] > 0
|
||||
if (!empty($category['representative_picture_id']))
|
||||
{
|
||||
$query = '
|
||||
SELECT tn_ext,path
|
||||
SELECT id,tn_ext,path
|
||||
FROM '.IMAGES_TABLE.'
|
||||
WHERE id = '.$category['representative_picture_id'].'
|
||||
;';
|
||||
$row = mysql_fetch_array(pwg_query($query));
|
||||
$src = get_thumbnail_src($row['path'], @$row['tn_ext']);
|
||||
$src = get_thumbnail_url($row);
|
||||
$url = PHPWG_ROOT_PATH.'admin.php?page=picture_modify';
|
||||
$url.= '&image_id='.$category['representative_picture_id'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user