From 81512b9856b0c1c2d372ce83d7b1c73a8919b444 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Wed, 21 May 2014 19:30:18 -0700 Subject: [PATCH] MDL-45658 events: included enrolment method in the user_enrolment_deleted/updated event descriptions --- lib/classes/event/user_enrolment_deleted.php | 4 ++-- lib/classes/event/user_enrolment_updated.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/classes/event/user_enrolment_deleted.php b/lib/classes/event/user_enrolment_deleted.php index 30dff690df3..59b60ecc191 100644 --- a/lib/classes/event/user_enrolment_deleted.php +++ b/lib/classes/event/user_enrolment_deleted.php @@ -66,8 +66,8 @@ class user_enrolment_deleted extends base { * @return string */ public function get_description() { - return "The user with id '$this->userid' unenrolled the user with id '$this->relateduserid' from the course with " . - "id '$this->courseid'."; + return "The user with id '$this->userid' unenrolled the user with id '$this->relateduserid' using the enrolment method " . + "'{$this->other['enrol']}' from the course with id '$this->courseid'."; } /** diff --git a/lib/classes/event/user_enrolment_updated.php b/lib/classes/event/user_enrolment_updated.php index 0570cf8da08..9d9d2e87808 100644 --- a/lib/classes/event/user_enrolment_updated.php +++ b/lib/classes/event/user_enrolment_updated.php @@ -65,8 +65,8 @@ class user_enrolment_updated extends base { * @return string */ public function get_description() { - return "The user with id '$this->userid' updated the enrolment for the user with id '$this->relateduserid' in " . - "the course with id '$this->courseid'."; + return "The user with id '$this->userid' updated the enrolment for the user with id '$this->relateduserid' using the " . + "enrolment method '{$this->other['enrol']}' in the course with id '$this->courseid'."; } /**