mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 11:43:01 +02:00
- images.path column added to reduce database access
- function mass_inserts moved from admin/remote_sites.php to admin/include/function.php - function mass_inserts used in admin/update.php git-svn-id: http://piwigo.org/svn/trunk@606 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user