mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-46942 events: fix naming of other param
originalcourseid matches coding style
This commit is contained in:
parent
7e670910ed
commit
7af5ad97c1
2 changed files with 5 additions and 5 deletions
|
@ -181,7 +181,7 @@ class restore_plan extends base_plan implements loggable {
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($this->controller->is_samesite()) {
|
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.
|
// Trigger a course restored event.
|
||||||
|
|
|
@ -37,7 +37,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||||
* - int mode: execution mode.
|
* - int mode: execution mode.
|
||||||
* - string operation: what operation are we performing?
|
* - string operation: what operation are we performing?
|
||||||
* - boolean samesite: true if restoring to same site.
|
* - 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
|
* @package core
|
||||||
|
@ -73,9 +73,9 @@ class course_restored extends base {
|
||||||
public function get_description() {
|
public function get_description() {
|
||||||
$retstring = "The user with id '$this->userid' restored the course with id '$this->courseid'.";
|
$retstring = "The user with id '$this->userid' restored the course with id '$this->courseid'.";
|
||||||
|
|
||||||
if (isset($this->other['original_course_id'])) {
|
if (isset($this->other['originalcourseid'])) {
|
||||||
$originalcourseid = $this->other['original_course_id'];
|
$originalcourseid = $this->other['originalcourseid'];
|
||||||
$retstring = "The user with id '$this->userid' restored old course with id " .
|
$retstring = "The user with id '$this->userid' restored old course with id " .
|
||||||
"'$originalcourseid' to a new course with id '$this->courseid'.";
|
"'$originalcourseid' to a new course with id '$this->courseid'.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue