mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Always.
This commit is contained in:
parent
25786a263a
commit
28e30091f0
@ -52,20 +52,20 @@
|
|||||||
|
|
||||||
set_moodle_cookie($USER->username);
|
set_moodle_cookie($USER->username);
|
||||||
|
|
||||||
|
unset($SESSION->lang);
|
||||||
|
save_session("SESSION");
|
||||||
|
|
||||||
if (user_not_fully_set_up($USER)) {
|
if (user_not_fully_set_up($USER)) {
|
||||||
$site = get_site();
|
$site = get_site();
|
||||||
session_write_close();
|
session_write_close();
|
||||||
header("Location: $CFG->wwwroot/user/edit.php?id=$USER->id&course=$site->id");
|
header("Location: $CFG->wwwroot/user/edit.php?id=$USER->id&course=$site->id");
|
||||||
|
|
||||||
} else if (empty($SESSION->wantsurl)) {
|
} else if (empty($SESSION->wantsurl)) {
|
||||||
unset($SESSION->lang);
|
|
||||||
save_session("SESSION");
|
|
||||||
session_write_close();
|
session_write_close();
|
||||||
header("Location: $CFG->wwwroot");
|
header("Location: $CFG->wwwroot");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$wantsurl = $SESSION->wantsurl;
|
$wantsurl = $SESSION->wantsurl;
|
||||||
unset($SESSION->lang);
|
|
||||||
unset($SESSION->wantsurl);
|
unset($SESSION->wantsurl);
|
||||||
save_session("SESSION");
|
save_session("SESSION");
|
||||||
session_write_close();
|
session_write_close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user