X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_contact.php;h=7dccb103d10fe43fea6447b75b5ff55214540ff2;hb=882925b8248d3058d5178da378cbf69d2ff52df2;hp=e11e290a756f30b9f52821a270e4400e6c617090;hpb=38a5358bfa646ae13a4a1a385741890fa88d9b7f;p=friendica.git diff --git a/mod/update_contact.php b/mod/update_contact.php index e11e290a75..7dccb103d1 100644 --- a/mod/update_contact.php +++ b/mod/update_contact.php @@ -29,14 +29,14 @@ use Friendica\Module\Contact; function update_contact_content(App $a) { - if (!empty($a->argv[1]) && (!empty($_GET['force']) || !DI::pConfig()->get(local_user(), 'system', 'no_auto_update'))) { + if (!empty(DI::args()->getArgv()[1]) && (!empty($_GET['force']) || !DI::pConfig()->get(local_user(), 'system', 'no_auto_update'))) { if (!empty($_GET['item'])) { $item = Post::selectFirst(['parent'], ['id' => $_GET['item']]); $parentid = $item['parent'] ?? 0; } else { $parentid = 0; } - $text = Contact::getConversationsHMTL($a, $a->argv[1], true, $parentid); + $text = Contact::getConversationsHMTL($a, DI::args()->getArgv()[1], true, $parentid); } else { $text = ''; }