- $contact_details = get_contact_details_by_url($rr['url'], local_user());
-
- $contacts[] = array(
- 'img_hover' => sprintf( t('Visit %s\'s profile [%s]'),$rr['name'],$rr['url']),
- 'edit_hover' => t('Edit contact'),
- 'photo_menu' => contact_photo_menu($rr),
+ $contacts[] = [
+ 'img_hover' => L10n::t('Visit %s\'s profile [%s]', $contact_details['name'], $rr['url']),
+ 'edit_hover' => L10n::t('Edit contact'),
+ 'photo_menu' => Contact::photoMenu($rr),