X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Ftemplate%2Fgeneral_util.php;h=ce8dd68fddd9ba355f60d168d968dfb6ca08892b;hp=5aaf2a3938b5e842a3b54be87bdd6924cee2221a;hb=c997cbe6f5a46d432d7733acb207dfcdfd00e49e;hpb=f197ec8835b64975ff47dc6cd86dae75605baebf diff --git a/functions/template/general_util.php b/functions/template/general_util.php index 5aaf2a39..ce8dd68f 100644 --- a/functions/template/general_util.php +++ b/functions/template/general_util.php @@ -6,7 +6,7 @@ * This file is intended to contain helper functions for template sets * that would like to use them. * - * @copyright 1999-2016 The SquirrelMail Project Team + * @copyright 1999-2021 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -169,9 +169,10 @@ function displayErrors () { //FIXME: I think this is needless since there is no reason templates cannot just call directly to show_readable_size * * @param int size to be converted to human-readable + * @param int filesize_divisor the divisor we'll use (OPTIONAL; default 1024) * @return string human-readable form * @since 1.5.2 **/ -function humanReadableSize ($size) { - return show_readable_size($size); +function humanReadableSize ($size, $filesize_divisor=1024) { + return show_readable_size($size, $filesize_divisor); }