- $_SESSION['fastlane'] = $ret['url'];
-
- $r = q("SELECT `id`, `location`, `about`, `keywords` FROM `gcontact` WHERE `nurl` = '%s'",
- normalise_link($ret['url']));
-
- if (!$r) {
- $r = [['location' => '', 'about' => '', 'keywords' => '']];
- } else {
- $gcontact_id = $r[0]['id'];
- }
-
- if ($ret['network'] === NETWORK_DIASPORA) {
- $r[0]['location'] = '';
- $r[0]['about'] = '';
- }
-
- $header = L10n::t('Connect/Follow');
-
- $o = replace_macros($tpl, [
- '$header' => htmlentities($header),
- //'$photo' => proxy_url($ret['photo'], false, PROXY_SIZE_SMALL),
- '$desc' => '',
- '$pls_answer' => L10n::t('Please answer the following:'),
- '$does_know_you' => ['knowyou', L10n::t('Does %s know you?', $ret['name']), false, '', [L10n::t('No'), L10n::t('Yes')]],
- '$add_note' => L10n::t('Add a personal note:'),
- '$page_desc' => '',
- '$friendica' => '',
- '$statusnet' => '',
- '$diaspora' => '',
- '$diasnote' => '',
- '$your_address' => L10n::t('Your Identity Address:'),
- '$invite_desc' => '',
- '$emailnet' => '',
+ $_SESSION['fastlane'] = $contact['url'];
+
+ $o = Renderer::replaceMacros($tpl, [
+ '$header' => DI::l10n()->t('Connect/Follow'),
+ '$pls_answer' => DI::l10n()->t('Please answer the following:'),
+ '$your_address' => DI::l10n()->t('Your Identity Address:'),
+ '$url_label' => DI::l10n()->t('Profile URL'),
+ '$keywords_label'=> DI::l10n()->t('Tags:'),