mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 01:25:21 +02:00
Replaced argv/argc with replacement functions
This commit is contained in:
parent
9cc4682e0a
commit
0c0abd9238
23 changed files with 136 additions and 138 deletions
|
@ -42,7 +42,7 @@ function salmon_post(App $a, $xml = '') {
|
|||
|
||||
Logger::log('new salmon ' . $xml, Logger::DATA);
|
||||
|
||||
$nick = (($a->argc > 1) ? Strings::escapeTags(trim($a->argv[1])) : '');
|
||||
$nick = ((DI::args()->getArgc() > 1) ? Strings::escapeTags(trim(DI::args()->getArgv()[1])) : '');
|
||||
|
||||
$importer = DBA::selectFirst('user', [], ['nickname' => $nick, 'account_expired' => false, 'account_removed' => false]);
|
||||
if (! DBA::isResult($importer)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue