Browse Source

Logoff: display the message in the user language (used to be 100% english)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2864 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 years ago
parent
commit
29eee739a1
1 changed files with 7 additions and 0 deletions
  1. 7 0
      pages/logoff.php

+ 7 - 0
pages/logoff.php

@@ -37,6 +37,13 @@ else
 {
 {
 	$sUrl .= 'pages/UI.php';
 	$sUrl .= 'pages/UI.php';
 }
 }
+
+if (isset($_SESSION['auth_user']))
+{
+	$sAuthUser = $_SESSION['auth_user'];
+	UserRights::Login($sAuthUser); // Set the user's language
+}
+
 $sLoginMode = isset($_SESSION['login_mode']) ? $_SESSION['login_mode'] : '';
 $sLoginMode = isset($_SESSION['login_mode']) ? $_SESSION['login_mode'] : '';
 LoginWebPage::ResetSession();
 LoginWebPage::ResetSession();
 switch($sLoginMode)
 switch($sLoginMode)