From 4d626b59e51010e5ffead6d13296b14d602f4b57 Mon Sep 17 00:00:00 2001 From: shish Date: Mon, 6 Aug 2007 18:37:12 +0000 Subject: [PATCH] shorthand ints for display~ git-svn-id: file:///home/shish/svn/shimmie2/trunk@431 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/upload/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/upload/main.php b/ext/upload/main.php index 924d7c3d..217018cf 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -80,8 +80,8 @@ class Upload extends Extension { } else if(filesize($file['tmp_name']) > $config->get_int('upload_size')) { $this->theme->display_upload_error($page, "Error with ".html_escape($file['name']), - "File too large (".filesize($file['tmp_name'])." > ". - ($config->get_int('upload_size')).")"); + "File too large (".to_shorthand_int(filesize($file['tmp_name']))." > ". + (to_shorthand_int($config->get_int('upload_size'))).")"); } else if(!($info = getimagesize($file['tmp_name']))) { $this->theme->display_upload_error($page, "Error with ".html_escape($file['name']),