From 88e39d3fdd8b34165694378c6c6a89ef878d73cd Mon Sep 17 00:00:00 2001 From: Jakub Kania Date: Mon, 23 May 2016 17:39:12 +0200 Subject: [PATCH] MDL-54667 core_lib: Fix the param name in edit profile link --- lib/myprofilelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')); } }