X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ftagrm.php;h=b60823e31a47bfb0aee2d31c061324addf854e31;hb=865006682a3952565035207898b80dfbd6d390b1;hp=145f636cc41c1a428b79bde8e74ebabad3af7a7d;hpb=e42a9254c0e94588e200d02ef1cd242f0fdc1d64;p=friendica.git diff --git a/mod/tagrm.php b/mod/tagrm.php index 145f636cc4..b60823e31a 100644 --- a/mod/tagrm.php +++ b/mod/tagrm.php @@ -88,12 +88,12 @@ function tagrm_content(App $a) // NOTREACHED } - if ($a->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], [Strings::escapeTags(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