mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Replaced argv/argc with replacement functions
This commit is contained in:
parent
42454b3cf7
commit
f878d2e463
9 changed files with 25 additions and 25 deletions
|
@ -88,11 +88,11 @@ function ifttt_settings_post()
|
|||
|
||||
function ifttt_post(App $a)
|
||||
{
|
||||
if ($a->argc != 2) {
|
||||
if (DI::args()->getArgc() != 2) {
|
||||
return;
|
||||
}
|
||||
|
||||
$nickname = $a->argv[1];
|
||||
$nickname = DI::args()->getArgv()[1];
|
||||
|
||||
$user = DBA::selectFirst('user', ['uid'], ['nickname' => $nickname]);
|
||||
if (!DBA::isResult($user)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue