diff --git a/lib/myprofilelib.php b/lib/myprofilelib.php index e397770ad57..119091a8219 100644 --- a/lib/myprofilelib.php +++ b/lib/myprofilelib.php @@ -90,9 +90,9 @@ function core_myprofile_navigation(core_user\output\myprofile\tree $tree, $user, $url = $userauthplugin->edit_profile_url(); if (empty($url)) { if (empty($course)) { - $url = new moodle_url('/user/edit.php', array('userid' => $user->id, 'returnto' => 'profile')); + $url = new moodle_url('/user/edit.php', array('id' => $user->id, 'returnto' => 'profile')); } else { - $url = new moodle_url('/user/edit.php', array('userid' => $user->id, 'course' => $course->id, + $url = new moodle_url('/user/edit.php', array('id' => $user->id, 'course' => $course->id, 'returnto' => 'profile')); } }