use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\Util\Network;
+use Friendica\Util\Strings;
/**
* @brief ContactSelector class
public static function networkToName($network, $profile = "")
{
$nets = [
- Protocol::DFRN => L10n::t('Friendica'),
+ Protocol::DFRN => L10n::t('DFRN'),
Protocol::OSTATUS => L10n::t('OStatus'),
Protocol::FEED => L10n::t('RSS/Atom'),
Protocol::MAIL => L10n::t('Email'),
// Create the server url out of the profile url
$parts = parse_url($profile);
unset($parts['path']);
- $server_url = [normalise_link(Network::unparseURL($parts))];
+ $server_url = [Strings::normaliseLink(Network::unparseURL($parts))];
// Fetch the server url
- $gcontact = DBA::selectFirst('gcontact', ['server_url'], ['nurl' => normalise_link($profile)]);
+ $gcontact = DBA::selectFirst('gcontact', ['server_url'], ['nurl' => Strings::normaliseLink($profile)]);
if (!empty($gcontact) && !empty($gcontact['server_url'])) {
- $server_url[] = normalise_link($gcontact['server_url']);
+ $server_url[] = Strings::normaliseLink($gcontact['server_url']);
}
// Now query the GServer for the platform name