mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
show maximagesize warning in a human readable format
This commit is contained in:
parent
e0f6bd6c28
commit
a982320ba9
5 changed files with 17 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue