}
if(($maxfilesize) && ($filesize > $maxfilesize)) {
- $msg = sprintf(L10n::t('File exceeds size limit of %s'), formatBytes($maxfilesize));
+ $msg = L10n::t('File exceeds size limit of %s', formatBytes($maxfilesize));
if ($r_json) {
echo json_encode(['error'=>$msg]);
} else {