diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 0897fc53535..fe6f582135a 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -206,6 +206,7 @@ Limit=Limit Limits=Limits DevelopmentTeam=Development Team Logout=Logout +NoLogoutProcessWithAuthMode=No applicative disconnect feature with authentication mode %s Connection=Connection Setup=Setup Alert=Alert diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 8848219f809..97604e4ca75 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1430,11 +1430,11 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a // Link info $logouttext=''; $logouthtmltext=$appli.'
'; - $logouthtmltext.=$langs->trans("Logout").'
'; - //$logouthtmltext.="
"; if ($_SESSION["dol_authmode"] != 'forceuser' && $_SESSION["dol_authmode"] != 'http') { - $logouttext .='trans("Logout").'
'; + + $logouttext .='
trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1); @@ -1442,6 +1442,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a } else { + $logouthtmltext.=$langs->trans("NoLogoutProcessWithAuthMode",$_SESSION["dol_authmode"]); $logouttext .= img_picto($langs->trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1); }