format_network_name calls
implement formatNetworkName function
This commit is contained in:
@@ -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'] = '';
|
||||
}
|
||||
|
||||
@@ -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 = '';
|
||||
}
|
||||
|
||||
@@ -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 != "") {
|
||||
|
||||
Reference in New Issue
Block a user