use Friendica\Model\Profile;
use Friendica\Object\Image;
use Friendica\Util\Security;
+use Friendica\Util\Strings;
function profile_photo_init(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;
}