Explorar o código

Fix Issue when chamilo doesnt remembering the selected languague if logged off - Refs #8149

José Loguercio %!s(int64=9) %!d(string=hai) anos
pai
achega
c046d3efbe
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      main/inc/global.inc.php

+ 6 - 0
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'];
 }