From 094bbe3cee63806dbdfba108f81817e3a85dada9 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sat, 18 Sep 2004 16:09:47 +0000 Subject: - new version of create_file_listing.php for future 1.4 branch - new feature : remote site management (generate listing, update, clean, delete) - on category page, no display of filesize if info not available in database git-svn-id: http://piwigo.org/svn/trunk@526 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_default.inc.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 6eba15e8c..178f5a404 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -103,15 +103,10 @@ while ($row = mysql_fetch_array($result)) // message in title for the thumbnail $thumbnail_title = $row['file']; - if (!isset($row['filesize']) or $row['filesize'] == '') + if (isset($row['filesize'])) { - $filesize = floor(filesize($cat_directory.$row['file']) / 1024); + $thumbnail_title .= ' : '.$row['filesize'].' KB'; } - else - { - $filesize = $row['filesize']; - } - $thumbnail_title .= ' : '.$filesize.' KB'; // url link on picture.php page $url_link = PHPWG_ROOT_PATH.'picture.php?'; if ($page['cat'] == 'random') -- cgit v1.2.3