aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
Diffstat (limited to 'category.php')
-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'];