diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index df61e752f5c..3bb97bc2758 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -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 = '
';
$userDropDownImage = '
';