From 1bf3753f1449eedc4bd39c79b6ca17dc4f396e76 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 16 Nov 2004 23:38:34 +0000 Subject: - 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 --- include/category_default.inc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/category_default.inc.php') diff --git a/include/category_default.inc.php b/include/category_default.inc.php index b092f3c7a..2e89be05b 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -38,7 +38,7 @@ $array_cat_directories = array(); $query = ' -SELECT DISTINCT(id),file,date_available,category_id +SELECT DISTINCT(id),path,file,date_available,category_id ,tn_ext,name,filesize,storage_category_id,average_rate FROM '.IMAGES_TABLE.' AS i INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id=ic.image_id @@ -80,9 +80,7 @@ while ($row = mysql_fetch_array($result)) $name = replace_search($name, $_GET['search']); } - $thumbnail_url = get_thumbnail_src($row['file'], - $row['storage_category_id'], - @$row['tn_ext']); + $thumbnail_url = get_thumbnail_src($row['path'], @$row['tn_ext']); // message in title for the thumbnail $thumbnail_title = $row['file']; -- cgit v1.2.3