MDL-46942 events: fix naming of other param

originalcourseid matches coding style
This commit is contained in:
Dan Poltawski 2016-10-25 20:18:35 +01:00
parent 7e670910ed
commit 7af5ad97c1
2 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -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'.";
}