]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
formatBytes calls
[friendica.git] / mod / wall_attach.php
index 2a3038e8f6a4ec8ebfb3c6ada2cb2fb66581df9d..b4254ba64adfc683d3392725f65d77a320530384 100644 (file)
@@ -11,6 +11,7 @@ use Friendica\Database\DBA;
 use Friendica\Model\Contact;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Mimetype;
+use Friendica\Util\Strings;
 
 function wall_attach_post(App $a) {
 
@@ -115,7 +116,7 @@ function wall_attach_post(App $a) {
        }
 
        if ($maxfilesize && $filesize > $maxfilesize) {
-               $msg = L10n::t('File exceeds size limit of %s', formatBytes($maxfilesize));
+               $msg = L10n::t('File exceeds size limit of %s', Strings::formatBytes($maxfilesize));
                if ($r_json) {
                        echo json_encode(['error' => $msg]);
                } else {