mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:05:16 +02:00
Use short form array syntax everywhere
- Add short form array syntax to po2php.php generation
This commit is contained in:
parent
77dfbaa0bf
commit
e36f2bb1fb
212 changed files with 5160 additions and 5160 deletions
|
@ -66,7 +66,7 @@ function hovercard_content()
|
|||
}
|
||||
|
||||
// Move the contact data to the profile array so we can deliver it to
|
||||
$profile = array(
|
||||
$profile = [
|
||||
'name' => $contact['name'],
|
||||
'nick' => $contact['nick'],
|
||||
'addr' => defaults($contact, 'addr', $contact['url']),
|
||||
|
@ -81,12 +81,12 @@ function hovercard_content()
|
|||
'bd' => $contact['birthday'] <= '0001-01-01' ? '' : $contact['birthday'],
|
||||
'account_type' => Contact::getAccountType($contact),
|
||||
'actions' => $actions,
|
||||
);
|
||||
];
|
||||
if ($datatype == 'html') {
|
||||
$tpl = get_markup_template('hovercard.tpl');
|
||||
$o = replace_macros($tpl, array(
|
||||
$o = replace_macros($tpl, [
|
||||
'$profile' => $profile,
|
||||
));
|
||||
]);
|
||||
|
||||
return $o;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue