Show "Redmatrix" as network name.

This commit is contained in:
Michael Vogel 2015-07-16 10:09:59 +02:00
commit fca8aecc9b
10 changed files with 36 additions and 30 deletions

View file

@ -505,7 +505,7 @@ function contacts_content(&$a) {
$poll_enabled = in_array($contact['network'], array(NETWORK_DFRN, NETWORK_OSTATUS, NETWORK_FEED, NETWORK_MAIL, NETWORK_MAIL2));
$nettype = sprintf( t('Network type: %s'),network_to_name($contact['network']));
$nettype = sprintf( t('Network type: %s'),network_to_name($contact['network'], $contact["url"]));
$common = count_common_friends(local_user(),$contact['id']);
$common_text = (($common) ? sprintf( tt('%d contact in common','%d contacts in common', $common),$common) : '');
@ -806,7 +806,7 @@ function _contact_detail_for_template($rr){
'sparkle' => $sparkle,
'itemurl' => $rr['url'],
'url' => $url,
'network' => network_to_name($rr['network']),
'network' => network_to_name($rr['network'], $rr['url']),
);
}
}

View file

@ -43,13 +43,13 @@ function nogroup_content(&$a) {
'id' => $rr['id'],
'alt_text' => $alt_text,
'dir_icon' => $dir_icon,
'thumb' => $rr['thumb'],
'thumb' => $rr['thumb'],
'name' => $rr['name'],
'username' => $rr['name'],
'sparkle' => $sparkle,
'itemurl' => $rr['url'],
'url' => $url,
'network' => network_to_name($rr['network']),
'network' => network_to_name($rr['network'], $url),
);
}
}
@ -59,8 +59,8 @@ function nogroup_content(&$a) {
'$header' => t('Contacts who are not members of a group'),
'$contacts' => $contacts,
'$paginate' => paginate($a),
));
));
return $o;
}

View file

@ -68,7 +68,7 @@ function viewcontacts_content(&$a) {
'url' => $url,
'sparkle' => '',
'itemurl' => $rr['url'],
'network' => network_to_name($rr['network']),
'network' => network_to_name($rr['network'], $rr['url']),
);
}