mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
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:
+1
-5
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user