Rename utils::GetContactPictureAbsUrl() to utils::GetUserPictureAbsUrl()

This commit is contained in:
Molkobain
2021-03-25 17:06:59 +01:00
parent 7d1f5c91a7
commit 58d2b1d3f4
4 changed files with 16 additions and 19 deletions

View File

@@ -1085,18 +1085,16 @@ class UserRights
}
/**
* Return the absolute URL of the contact picture
* @param string $sLogin Login of the user from which we return the picture URL
* @param bool $bAllowDefaultPicture Set to false if you want it to return null instead of the default picture URL when the contact has no picture defined. This can be useful when we want to display something else than the default picture (eg. initials)
*
* @param string $sLogin Login of the user from which we return the picture URL
* @param bool $bAllowDefaultPicture Set to false if you want it to return null instead of the default picture URL when the contact has no picture defined. This can be useful when we want to display something else than the default picture (eg. initials)
*
* @return null|string
* @return null|string Absolute URL of the user picture (from their contact if they have one, or from the preferences)
* @throws \ArchivedObjectException
* @throws \CoreException
* @throws \Exception
* @since 3.0.0
*/
public static function GetContactPictureAbsUrl($sLogin = '', $bAllowDefaultPicture = true)
public static function GetUserPictureAbsUrl($sLogin = '', $bAllowDefaultPicture = true)
{
$sUserPicturesFolder = 'images/user-pictures/';