mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-76311 user: redirect to proper URL if a new user creation cancelled
This commit is contained in:
parent
880462a168
commit
f249a04e93
@ -165,6 +165,8 @@ if ($returnto === 'profile') {
|
||||
} else {
|
||||
$returnurl = new moodle_url('/user/profile.php', array('id' => $user->id));
|
||||
}
|
||||
} else if ($user->id === -1) {
|
||||
$returnurl = new moodle_url("/admin/user.php");
|
||||
} else {
|
||||
$returnurl = new moodle_url('/user/preferences.php', array('userid' => $user->id));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user