# WARNING: head commit changed in the meantime

Merge
This commit is contained in:
Laurent Destailleur 2021-09-09 15:12:02 +02:00
commit 70f22f2648

View File

@ -1849,15 +1849,16 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
global $dolibarr_main_authentication, $dolibarr_main_demo;
global $menumanager;
$userImage = $userDropDownImage = '';
if (!empty($user->photo))
{
$userImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'photouserphoto userphoto', 'small', 0, 1);
$userDropDownImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'dropdown-user-image', 'small', 0, 1);
} else {
$nophoto = '/public/theme/common/user_anonymous.png';
if ($user->gender == 'man') $nophoto = '/public/theme/common/user_man.png';
if ($user->gender == 'woman') $nophoto = '/public/theme/common/user_woman.png';
$langs->load('companies');
$userImage = $userDropDownImage = '';
if (!empty($user->photo)) {
$userImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'photouserphoto userphoto', 'small', 0, 1);
$userDropDownImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'dropdown-user-image', 'small', 0, 1);
} else {
$nophoto = '/public/theme/common/user_anonymous.png';
if ($user->gender == 'man') $nophoto = '/public/theme/common/user_man.png';
if ($user->gender == 'woman') $nophoto = '/public/theme/common/user_woman.png';
$userImage = '<img class="photo photouserphoto userphoto" alt="No photo" src="'.DOL_URL_ROOT.$nophoto.'">';
$userDropDownImage = '<img class="photo dropdown-user-image" alt="No photo" src="'.DOL_URL_ROOT.$nophoto.'">';