aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-09-20 21:44:57 +0000
committerz0rglub <z0rglub@piwigo.org>2003-09-20 21:44:57 +0000
commit5b25b7bac3bfac561be8aa7848d8b95411a19e70 (patch)
treec4a461425b931cd6825e5dba6986b7a56f9a35f8
parente1f207136e67cb4bfd9114ebdba6a591187f408e (diff)
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
Diffstat (limited to '')
-rw-r--r--category.php6
1 files changed, 1 insertions, 5 deletions
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'];