]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile_photo.php
Enable communication with Peertube
[friendica.git] / mod / profile_photo.php
index 3304e3cab2c44762e2e8f72d737ee9a1bf8d5641..d8e236a73787fc476df68fb993adeec1fa8cadfc 100644 (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;
        }