From 1aafefa03ad060af9faf1eb3f4da9d9f8d4aa5e0 Mon Sep 17 00:00:00 2001 From: David Rise Knotten Date: Sun, 28 Mar 2021 17:55:57 +0200 Subject: [PATCH] Changed issue creator url to refer to users page --- classes/output/question_issue_page.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/output/question_issue_page.php b/classes/output/question_issue_page.php index 01f5d70..e31cbba 100644 --- a/classes/output/question_issue_page.php +++ b/classes/output/question_issue_page.php @@ -90,7 +90,10 @@ public function export_for_template(renderer_base $output) { $issuedescription = new stdClass(); $user = $DB->get_record('user', array('id' => $issuedetails->userid)); $issuedescription->fullname = $user->username; - $issuedescription->userurl = "http://lol.no"; + $userurl = new \moodle_url('/user/view.php'); + $userurl->param('id', $user->id); + $userurl->param('course', $this->courseid); + $issuedescription->userurl = $userurl; $userpicture = new \user_picture($user); $userpicture->size = 0; // Size f2. $issuedescription->profileimageurl = $userpicture->get_url($PAGE)->out(false);