1
1
Fork 0

formatBytes calls

implement function in new class
This commit is contained in:
Adam Magness 2018-11-08 10:28:49 -05:00
commit 46d7767fd0
5 changed files with 8 additions and 6 deletions

View file

@ -16,6 +16,7 @@ use Friendica\Model\Photo;
use Friendica\Model\Profile;
use Friendica\Object\Image;
use Friendica\Util\Security;
use Friendica\Util\Strings;
function profile_photo_init(App $a)
{
@ -151,7 +152,7 @@ function profile_photo_post(App $a)
$maximagesize = Config::get('system', 'maximagesize');
if (($maximagesize) && ($filesize > $maximagesize)) {
notice(L10n::t('Image exceeds size limit of %s', formatBytes($maximagesize)) . EOL);
notice(L10n::t('Image exceeds size limit of %s', Strings::formatBytes($maximagesize)) . EOL);
@unlink($src);
return;
}