MDL-54667 core_lib: Fix the param name in edit profile link
authorJakub Kania <jakub.kania@webanywhere.co.uk>
Mon, 23 May 2016 15:39:12 +0000 (17:39 +0200)
committerJun Pataleta <jun@moodle.com>
Mon, 30 May 2016 08:34:02 +0000 (16:34 +0800)
lib/myprofilelib.php

index e397770..119091a 100644 (file)
@@ -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'));
                     }
                 }