X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=9d5641874ba68453b2834e6a386093da795de89f;hb=2a442952b69987d578288891c064b0fed0369086;hp=bb5128137f5d6be5f5ce11741b94de337d90a20b;hpb=04d620fc2f567d32b50f5d5b0974acafeb072177;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index bb5128137f..9d5641874b 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -1,6 +1,22 @@ . + * */ use Friendica\App; @@ -15,8 +31,8 @@ function wall_attach_post(App $a) { $r_json = (!empty($_GET['response']) && $_GET['response']=='json'); - if ($a->argc > 1) { - $nick = $a->argv[1]; + if (DI::args()->getArgc() > 1) { + $nick = DI::args()->getArgv()[1]; $r = q("SELECT `user`.*, `contact`.`id` FROM `user` LEFT JOIN `contact` on `user`.`uid` = `contact`.`uid` WHERE `user`.`nickname` = '%s' AND `user`.`blocked` = 0 and `contact`.`self` = 1 LIMIT 1", DBA::escape($nick) ); @@ -90,7 +106,7 @@ function wall_attach_post(App $a) { if ($r_json) { echo json_encode(['error' => $msg]); } else { - notice($msg . EOL); + notice($msg); } @unlink($src); exit();