if (DBA::isResult($contact)) {
$vcard_widget = replace_macros(get_markup_template("vcard-widget.tpl"), [
- '$name' => htmlentities($contact['name']),
+ '$name' => htmlentities($contact['name']),
'$photo' => $contact['photo'],
- 'url' => 'contacts/' . $cid
+ 'url' => 'contact/' . $cid
]);
if (!x($a->page, 'aside')) {
$warning = L10n::t('<strong>WARNING: This is highly advanced</strong> and if you enter incorrect information your communications with this contact may stop working.');
$info = L10n::t('Please use your browser \'Back\' button <strong>now</strong> if you are uncertain what to do on this page.');
- $returnaddr = "contacts/$cid";
+ $returnaddr = "contact/$cid";
$allow_remote_self = Config::get('system', 'allow_users_remote_self');
}
goaway($return_url);
} elseif ($result['cid']) {
- goaway('contacts/' . $result['cid']);
+ goaway('contact/' . $result['cid']);
}
info(L10n::t('The contact could not be added.'));
$return_path = 'contacts';
} else {
DBA::update('contact', ['rel' => Contact::FOLLOWER], ['id' => $contact['id']]);
- $return_path = 'contacts/' . $contact['id'];
+ $return_path = 'contact/' . $contact['id'];
}
info(L10n::t('Contact unfollowed'));
if (!in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
notice(L10n::t('Unfollowing is currently not supported by your network.'));
- goaway('contacts/' . $contact['id']);
+ goaway('contact/' . $contact['id']);
// NOTREACHED
}