mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°7565 - Refactor way of retrieving user's picture
This commit is contained in:
@@ -454,10 +454,7 @@ JS;
|
||||
protected function ComputeUserData()
|
||||
{
|
||||
// Use a picture set in the preferences is there is none in the user's contact
|
||||
$sPictureUrl = UserRights::GetUserPictureAbsUrl('', false);
|
||||
if (empty($sPictureUrl)) {
|
||||
$sPictureUrl = utils::GetAbsoluteUrlAppRoot().'images/user-pictures/'.appUserPreferences::GetPref('user_picture_placeholder', 'user-profile-default-256px.png');
|
||||
}
|
||||
$sPictureUrl = UserRights::GetUserPictureAbsUrl();
|
||||
|
||||
// TODO 3.0.0 : what do we show if no contact is linked to the user ?
|
||||
$aData = [
|
||||
|
||||
Reference in New Issue
Block a user