mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 07:30:01 +01:00
MDL-75826 profile: Redirect to profile page if returnto is profile.
This commit is contained in:
parent
0ea3d45e04
commit
fb5a3dd643
@ -311,6 +311,9 @@ if ($userform->is_cancelled()) {
|
||||
} else {
|
||||
redirect($returnurl, get_string('changessaved'), null, \core\output\notification::NOTIFY_SUCCESS);
|
||||
}
|
||||
} else if ($returnto === 'profile') {
|
||||
\core\session\manager::gc(); // Remove stale sessions.
|
||||
redirect($returnurl, get_string('changessaved'), null, \core\output\notification::NOTIFY_SUCCESS);
|
||||
} else {
|
||||
\core\session\manager::gc(); // Remove stale sessions.
|
||||
redirect("$CFG->wwwroot/$CFG->admin/user.php", get_string('changessaved'), null, \core\output\notification::NOTIFY_SUCCESS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user