Normalize uses of Strings::formatNetworkName to $network_link

- Unescape HTML template variable $network_link
This commit is contained in:
Hypolite Petovan 2018-12-26 11:03:41 -05:00
parent 5b74f066f2
commit 620395378e
10 changed files with 25 additions and 26 deletions

View file

@ -75,18 +75,17 @@ class Contact extends BaseModule
$a->data['contact'] = $contact;
if (($contact['network'] != '') && ($contact['network'] != Protocol::DFRN)) {
$networkname = Strings::formatNetworkName($contact['network'], $contact['url']);
$network_link = Strings::formatNetworkName($contact['network'], $contact['url']);
} else {
$networkname = '';
$network_link = '';
}
/// @TODO Add nice spaces
$vcard_widget = Renderer::replaceMacros(Renderer::getMarkupTemplate('vcard-widget.tpl'), [
'$name' => $contact['name'],
'$photo' => $contact['photo'],
'$url' => Model\Contact::MagicLink($contact['url']),
'$addr' => defaults($contact, 'addr', ''),
'$network_name' => $networkname,
'$network_link' => $network_link,
'$network' => L10n::t('Network:'),
'$account_type' => Model\Contact::getAccountType($contact)
]);