show maximagesize warning in a human readable format

This commit is contained in:
rabuzarus 2015-06-29 02:39:08 +02:00
parent e0f6bd6c28
commit a982320ba9
5 changed files with 17 additions and 5 deletions

View file

@ -119,7 +119,7 @@ function wall_upload_post(&$a, $desktopmode = true) {
$maximagesize = get_config('system','maximagesize');
if(($maximagesize) && ($filesize > $maximagesize)) {
echo sprintf( t('Image exceeds size limit of %d'), $maximagesize) . EOL;
echo sprintf( t('Image exceeds size limit of %s'), formatBytes($maximagesize)) . EOL;
@unlink($src);
killme();
}