@@ -87,7+86,7 @@ function wall_attach_post(App $a) {
*/
if ($filesize <= 0) {
*/
if ($filesize <= 0) {
- $msg = L10n::t('Sorry, maybe your upload is bigger than the PHP configuration allows') . EOL .(L10n::t('Or - did you try to upload an empty file?'));
+ $msg = DI::l10n()->t('Sorry, maybe your upload is bigger than the PHP configuration allows') . EOL .(DI::l10n()->t('Or - did you try to upload an empty file?'));
if ($r_json) {
echo json_encode(['error' => $msg]);
} else {
if ($r_json) {
echo json_encode(['error' => $msg]);
} else {
@@ -98,7+97,7 @@ function wall_attach_post(App $a) {
}
if ($maxfilesize && $filesize > $maxfilesize) {
}
if ($maxfilesize && $filesize > $maxfilesize) {
- $msg = L10n::t('File exceeds size limit of %s', Strings::formatBytes($maxfilesize));
+ $msg = DI::l10n()->t('File exceeds size limit of %s', Strings::formatBytes($maxfilesize));
if ($r_json) {
echo json_encode(['error' => $msg]);
} else {
if ($r_json) {
echo json_encode(['error' => $msg]);
} else {
@@ -113,7+112,7 @@ function wall_attach_post(App $a) {