From: pdontthink Date: Thu, 14 May 2009 17:20:47 +0000 (+0000) Subject: Clarify docs and use correct $nbsp X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fa965ffacefbf27fdbd62424eb1266bdf086072c;p=squirrelmail.git Clarify docs and use correct $nbsp git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13702 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/strings.php b/functions/strings.php index 26d411b5..944177d9 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -655,12 +655,16 @@ function OneTimePadCreate ($length=100) { } /** - * Returns a string showing the size of the message/attachment. - * - * @param int $bytes the filesize in bytes - * @return string the filesize in human readable format - * @since 1.0 - */ + * Returns a string showing a byte size figure in + * a more easily digested (readable) format + * + * @param int $bytes the size in bytes + * + * @return string The size in human readable format + * + * @since 1.0 + * + */ function show_readable_size($bytes) { $bytes /= 1024; $type = _("KiB"); @@ -678,7 +682,8 @@ function show_readable_size($bytes) { settype($bytes, 'integer'); } - return $bytes . ' ' . $type; + global $nbsp; + return $bytes . $nbsp . $type; } /**