diff options
author | plegall <plg@piwigo.org> | 2004-11-16 23:38:34 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2004-11-16 23:38:34 +0000 |
commit | 1bf3753f1449eedc4bd39c79b6ca17dc4f396e76 (patch) | |
tree | 7d7443b94356cd18a038b3f104f6e21a35d01279 /include/category_subcats.inc.php | |
parent | 973e0f8806cd6d569c01977ad5112e16cc7a7f6f (diff) |
- 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
Diffstat (limited to 'include/category_subcats.inc.php')
-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']; |