cvs: phpweb /include layout.inc
| From: | Hojtsy Gabor | Date: | Sun, 11 Mar 2001 11:17:26 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4380@lists.php.net to get a copy of this message | ||
goba Sun Mar 11 03:17:26 2001 EDT
Modified files:
/phpweb/include layout.inc
Log:
Better formating for the file sizes...
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.18 phpweb/include/layout.inc:1.19
--- phpweb/include/layout.inc:1.18 Sun Mar 11 03:03:30 2001
+++ phpweb/include/layout.inc Sun Mar 11 03:17:25 2001
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.18 2001/03/11 11:03:30 goba Exp $ */
+/* $Id: layout.inc,v 1.19 2001/03/11 11:17:25 goba Exp $ */
# spacer()
@@ -164,11 +164,8 @@
print_link("http://www.php.net/do_download.php?download_file="
. $file . "&source_site=$server", $title, false, $extraparam);
- if ($size && !$size_in_link) {
- printf(" [%dKB]", $size);
- } else if (isset($filesizes[$local_file])) {
- echo " [".$filesizes[$local_file]."]";
- }
+ if (!$size && isset($filesizes[$local_file])) { $size = $filesizes[$local_file]; }
+ if ($size) { echo "[" . number_format($size, 0, ",", ".") .
"Kb]"; }
}