From: stevetruckstuff Date: Mon, 18 Sep 2006 14:57:18 +0000 (+0000) Subject: Just in case.... X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=e1603e719de6634cd2a17b4f9e28a784b1d8c7e8 Just in case.... git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11714 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/util_global.php b/templates/util_global.php index 9969c2f6..b2eee612 100644 --- a/templates/util_global.php +++ b/templates/util_global.php @@ -91,5 +91,19 @@ function getIconPath ($icon_theme_path, $icon_name) { function displayErrors () { global $oErrorHandler; - $oErrorHandler->displayErrors(); + if ($oErrorHandler) { + $oErrorHandler->displayErrors(); + } +} + +/** + * Make the internal show_readable_size() function available to templates. + * + * @param int size to be converted to human-readable + * @return string human-readable form + * @since 1.5.2 + **/ +function humanReadableSize ($size) { + return show_readable_size($size); } +