format_network_name calls

implement formatNetworkName function
This commit is contained in:
Adam Magness
2018-11-08 10:24:47 -05:00
parent b99925060a
commit 916b3e551e
5 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ class Profile
$profile['picdate'] = urlencode(defaults($profile, 'picdate', ''));
if (($profile['network'] != '') && ($profile['network'] != Protocol::DFRN)) {
$profile['network_name'] = format_network_name($profile['network'], $profile['url']);
$profile['network_name'] = Strings::formatNetworkName($profile['network'], $profile['url']);
} else {
$profile['network_name'] = '';
}
+1 -1
View File
@@ -78,7 +78,7 @@ class Contact extends BaseModule
$a->data['contact'] = $contact;
if (($contact['network'] != '') && ($contact['network'] != Protocol::DFRN)) {
$networkname = format_network_name($contact['network'], $contact['url']);
$networkname = Strings::formatNetworkName($contact['network'], $contact['url']);
} else {
$networkname = '';
}
+1 -1
View File
@@ -151,7 +151,7 @@ class Strings
*
* @return string Formatted network name
*/
public static function formatNetworkName($network, $url = 0) // format_network_name()
public static function formatNetworkName($network, $url = 0)
{
if ($network != "") {
if ($url != "") {