From 5b25b7bac3bfac561be8aa7848d8b95411a19e70 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sat, 20 Sep 2003 21:44:57 +0000 Subject: If informations (filesize,width,height) are not given in the database about a picture, they can be found with the file itself git-svn-id: http://piwigo.org/svn/trunk@148 68402e56-0260-453c-a942-63ccdbb3a9ee --- category.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'category.php') diff --git a/category.php b/category.php index 32f4dff0d..8df696134 100644 --- a/category.php +++ b/category.php @@ -276,13 +276,9 @@ if ( isset( $page['cat'] ) and $page['cat_nb_images'] != 0 ) // message in title for the thumbnail $thumbnail_title = $row['file']; if ( $row['filesize'] == '' ) - { - $poids = floor( filesize( $lien_image ) / 1024 ); - } + $poids = floor( filesize( $cat_directory.$row['file'] ) / 1024 ); else - { $poids = $row['filesize']; - } $thumbnail_title .= ' : '.$poids.' KB'; // url link on picture.php page $url_link = './picture.php?cat='.$page['cat']; -- cgit v1.2.3