diff --git a/backup/util/plan/restore_plan.class.php b/backup/util/plan/restore_plan.class.php index 88d3f51da32..3f2ce6386da 100644 --- a/backup/util/plan/restore_plan.class.php +++ b/backup/util/plan/restore_plan.class.php @@ -181,7 +181,7 @@ class restore_plan extends base_plan implements loggable { ); if ($this->controller->is_samesite()) { - $otherarray['original_course_id'] = $this->controller->get_info()->original_course_id; + $otherarray['originalcourseid'] = $this->controller->get_info()->original_course_id; } // Trigger a course restored event. diff --git a/lib/classes/event/course_restored.php b/lib/classes/event/course_restored.php index d15be06771f..7b72e4cadda 100644 --- a/lib/classes/event/course_restored.php +++ b/lib/classes/event/course_restored.php @@ -37,7 +37,7 @@ defined('MOODLE_INTERNAL') || die(); * - int mode: execution mode. * - string operation: what operation are we performing? * - boolean samesite: true if restoring to same site. - * - int original_course_id: the id of the course the course being restored, only included if samesite is true + * - int originalcourseid: the id of the course the course being restored, only included if samesite is true * } * * @package core @@ -73,9 +73,9 @@ class course_restored extends base { public function get_description() { $retstring = "The user with id '$this->userid' restored the course with id '$this->courseid'."; - if (isset($this->other['original_course_id'])) { - $originalcourseid = $this->other['original_course_id']; - $retstring = "The user with id '$this->userid' restored old course with id " . + if (isset($this->other['originalcourseid'])) { + $originalcourseid = $this->other['originalcourseid']; + $retstring = "The user with id '$this->userid' restored old course with id " . "'$originalcourseid' to a new course with id '$this->courseid'."; }