From c046d3efbe9d4c3c55d2d2485decbc328a880129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Tue, 22 Mar 2016 13:28:16 -0500 Subject: [PATCH] Fix Issue when chamilo doesnt remembering the selected languague if logged off - Refs #8149 --- main/inc/global.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/inc/global.inc.php b/main/inc/global.inc.php index 99a9332928..349ae7684b 100755 --- a/main/inc/global.inc.php +++ b/main/inc/global.inc.php @@ -319,6 +319,12 @@ foreach ($configurationFiles as $file) { // if we use the non-javascript version (with the go button) we receive a post $user_language = ''; $browser_language = ''; + +// see #8149 +if (!empty($_SESSION['user_language_choice'])) { + $user_language = $_SESSION['user_language_choice']; +} + if (!empty($_GET['language'])) { $user_language = $_GET['language']; }