X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fviewcontacts.php;h=7763dc8bf7a9c4b88bbbaec9485218cf6dfbdfc4;hb=d071a5cdad76f657fe0527b45717068b53b14bae;hp=3b81171d7a2968fa6da1180b2ce6ee76f5795806;hpb=407b2397cbb25a1de9252f16279dfdd786ffade1;p=friendica.git diff --git a/mod/viewcontacts.php b/mod/viewcontacts.php index 3b81171d7a..7763dc8bf7 100644 --- a/mod/viewcontacts.php +++ b/mod/viewcontacts.php @@ -46,6 +46,8 @@ function viewcontacts_content(App $a) return; } + $is_owner = $a->profile['profile_uid'] == local_user(); + $o = ""; // tabs @@ -97,9 +99,6 @@ function viewcontacts_content(App $a) $url = $rr['url']; // route DFRN profiles through the redirect - - $is_owner = ((local_user() && ($a->profile['profile_uid'] == local_user())) ? true : false); - if ($is_owner && ($rr['network'] === NETWORK_DFRN) && ($rr['rel'])) { $url = 'redir/' . $rr['id']; } else { @@ -110,7 +109,7 @@ function viewcontacts_content(App $a) $contacts[] = [ 'id' => $rr['id'], - 'img_hover' => sprintf(L10n::t('Visit %s\'s profile [%s]'), $contact_details['name'], $rr['url']), + 'img_hover' => L10n::t('Visit %s\'s profile [%s]', $contact_details['name'], $rr['url']), 'photo_menu' => Contact::photoMenu($rr), 'thumb' => proxy_url($contact_details['thumb'], false, PROXY_SIZE_THUMB), 'name' => htmlentities(substr($contact_details['name'], 0, 20)),