X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwallmessage.php;h=cf1bca9cb9d9dc2b8e6e437bbb271750414f6ae3;hb=9c5a3eba533b84a731d0dacff0e0aae104daca1c;hp=cbf53b45d62c39548040409fe465cf3a0a4278f8;hpb=ee8689cc899beecaf0943ac175550a7fb49cf199;p=friendica.git diff --git a/mod/wallmessage.php b/mod/wallmessage.php index cbf53b45d6..cf1bca9cb9 100644 --- a/mod/wallmessage.php +++ b/mod/wallmessage.php @@ -1,6 +1,6 @@ argc > 1) ? Strings::escapeTags($a->argv[1]) : ''); + $recipient = ((DI::args()->getArgc() > 1) ? Strings::escapeTags(DI::args()->getArgv()[1]) : ''); if ((! $recipient) || (! $body)) { return; } @@ -97,7 +97,7 @@ function wallmessage_content(App $a) { return; } - $recipient = (($a->argc > 1) ? $a->argv[1] : ''); + $recipient = ((DI::args()->getArgc() > 1) ? DI::args()->getArgv()[1] : ''); if (!$recipient) { notice(DI::l10n()->t('No recipient.'));