@@ -95,9+100,9 @@ function wall_attach_post(App $a) {
*/
if($filesize <=0) {
*/
if($filesize <=0) {
- $msg = t('Sorry, maybe your upload is bigger than the PHP configuration allows') . EOL .(t('Or - did you try to upload an empty file?'));
+ $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?'));
if ($r_json) {
if ($r_json) {
- echo json_encode(array('error'=>$msg));
+ echo json_encode(['error'=>$msg]);
} else {
notice( $msg. EOL );
}
} else {
notice( $msg. EOL );
}
@@ -106,9+111,9 @@ function wall_attach_post(App $a) {