From 236f943752e03a3c54dae450c3fac05505bdc0e6 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 26 Dec 2008 22:36:51 -0800 Subject: [PATCH] human filesize --- themes/danbooru/view.theme.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/danbooru/view.theme.php b/themes/danbooru/view.theme.php index a1becf93..adbf3e6f 100644 --- a/themes/danbooru/view.theme.php +++ b/themes/danbooru/view.theme.php @@ -15,6 +15,7 @@ class CustomViewTheme extends ViewTheme { $h_ownerlink = "$h_owner"; $h_ip = html_escape($image->owner_ip); $h_date = date("Y-m-d", strtotime($image->posted)); + $h_filesize = to_shorthand_int($image->filesize); global $user; if($user->is_admin()) { @@ -25,7 +26,7 @@ class CustomViewTheme extends ViewTheme { Id: {$image->id}
Posted: $h_date by $h_ownerlink
Size: {$image->width}x{$image->height} -
Filesize: {$image->filesize} +
Filesize: $h_filesize "; if(!is_null($image->source)) {