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
This commit is contained in:
z0rglub
2003-09-20 21:44:57 +00:00
parent e1f207136e
commit 5b25b7bac3
+1 -5
View File
@@ -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'];