X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ftagrm.php;h=fdf3ef4f8f4cfee64f55056fd07651737c644c18;hb=7ce97459d437a98ece0077b28bb36771aa36ed82;hp=145f636cc41c1a428b79bde8e74ebabad3af7a7d;hpb=e42a9254c0e94588e200d02ef1cd242f0fdc1d64;p=friendica.git diff --git a/mod/tagrm.php b/mod/tagrm.php index 145f636cc4..fdf3ef4f8f 100644 --- a/mod/tagrm.php +++ b/mod/tagrm.php @@ -1,6 +1,6 @@ argc == 3) { - update_tags($a->argv[1], [Strings::escapeTags(trim(hex2bin($a->argv[2])))]); + if (DI::args()->getArgc()== 3) { + update_tags(DI::args()->getArgv()[1], [trim(hex2bin(DI::args()->getArgv()[2]))]); DI::baseUrl()->redirect($photo_return); } - $item_id = (($a->argc > 1) ? intval($a->argv[1]) : 0); + $item_id = ((DI::args()->getArgc()> 1) ? intval(DI::args()->getArgv()[1]) : 0); if (!$item_id) { DI::baseUrl()->redirect($photo_return); // NOTREACHED