Permalink
Browse files

MDL-46942 events: fix naming of other param

originalcourseid matches coding style
  • Loading branch information...
danpoltawski committed Oct 25, 2016
1 parent 7e67091 commit 7af5ad97c1922d193b7b10c0238a9a4850463c8f
Showing with 5 additions and 5 deletions.
  1. +1 −1 backup/util/plan/restore_plan.class.php
  2. +4 −4 lib/classes/event/course_restored.php
@@ -181,7 +181,7 @@ public function execute() {
);
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 @@
* - 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 @@ public static function get_name() {
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'.";
}

0 comments on commit 7af5ad9

Please sign in to comment.