mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-46942 events: fix naming of other param
originalcourseid matches coding style
This commit is contained in:
parent
7e670910ed
commit
7af5ad97c1
@ -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.
|
||||
|
@ -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'.";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user