mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Throw away session language when logging in (use users language instead)
This commit is contained in:
parent
caf7ccd44f
commit
25786a263a
1 changed files with 3 additions and 0 deletions
|
@ -58,11 +58,14 @@
|
|||
header("Location: $CFG->wwwroot/user/edit.php?id=$USER->id&course=$site->id");
|
||||
|
||||
} else if (empty($SESSION->wantsurl)) {
|
||||
unset($SESSION->lang);
|
||||
save_session("SESSION");
|
||||
session_write_close();
|
||||
header("Location: $CFG->wwwroot");
|
||||
|
||||
} else {
|
||||
$wantsurl = $SESSION->wantsurl;
|
||||
unset($SESSION->lang);
|
||||
unset($SESSION->wantsurl);
|
||||
save_session("SESSION");
|
||||
session_write_close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue