diff options
Diffstat (limited to 'include/category_default.inc.php')
-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') |