diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-09-18 16:09:47 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-09-18 16:09:47 +0000 |
commit | 094bbe3cee63806dbdfba108f81817e3a85dada9 (patch) | |
tree | f453667bde031d92bf8c4a041ae28c6eac531193 /include | |
parent | aa392c1fdd3139ddbb1751166364b2ee83128b3d (diff) |
- 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
Diffstat (limited to '')
-rw-r--r-- | include/category_default.inc.php | 9 |
1 files changed, 2 insertions, 7 deletions
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') |