Commit c0874421 authored by Sam Hemelryk's avatar Sam Hemelryk
Browse files

admin-roles-userroles MDL-19787 Added set_url call

parent e4ca0c85
......@@ -49,7 +49,8 @@ if (!$course = $DB->get_record('course', array('id' => $courseid))) {
$usercontext = get_context_instance(CONTEXT_USER, $user->id);
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
$baseurl = $CFG->wwwroot . '/' . $CFG->admin . '/roles/usersroles.php?userid='.$userid.'&courseid='.$courseid;
$baseurl = new moodle_url('/admin/roles/usersroles.php', array('userid'=>$userid, 'courseid'=>$courseid));
$PAGE->set_url($baseurl);
/// Check login and permissions.
require_login($course);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment