mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:10:11 +00:00
Some fixes:
- $gsid's default value cannot sadly be 0, it now must be null to allow some code work - added some more type-hints - documented a bit more
This commit is contained in:
parent
4e53666c70
commit
33768ea1c6
8 changed files with 21 additions and 15 deletions
|
@ -111,14 +111,16 @@ class ContactSelector
|
|||
}
|
||||
|
||||
/**
|
||||
* Determines network name
|
||||
*
|
||||
* @param string $network network of the contact
|
||||
* @param string $profile optional, default empty
|
||||
* @param string $protocol (Optional) Protocol that is used for the transmission
|
||||
* @param int $gsid ??? (@TODO)
|
||||
* @param int $gsid Server id
|
||||
* @return string
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public static function networkToName(string $network, string $profile = '', string $protocol = '', int $gsid = 0): string
|
||||
public static function networkToName(string $network, string $profile = '', string $protocol = '', int $gsid = null): string
|
||||
{
|
||||
$nets = [
|
||||
Protocol::DFRN => DI::l10n()->t('DFRN'),
|
||||
|
@ -180,13 +182,15 @@ class ContactSelector
|
|||
}
|
||||
|
||||
/**
|
||||
* Determines network's icon name
|
||||
*
|
||||
* @param string $network network
|
||||
* @param string $profile optional, default empty
|
||||
* @param int $gsid ??? (@TODO)
|
||||
* @return string
|
||||
* @param int $gsid Server id
|
||||
* @return string Name for network icon
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function networkToIcon(string $network, string $profile = "", int $gsid = 0): string
|
||||
public static function networkToIcon(string $network, string $profile = "", int $gsid = null): string
|
||||
{
|
||||
$nets = [
|
||||
Protocol::DFRN => 'friendica',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue