Skip to content

Commit 885577b

Browse files
committed
#564 Reword event descriptions for template_* events
1 parent 9c7dbba commit 885577b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

classes/event/template_created.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public function get_description() {
5555
return "The user with id '$this->userid' created the certificate template with id '$this->objectid'.";
5656
} else {
5757
// Else assume it's a module instance in a course.
58-
return "The user with id '$this->userid' created the certificate in course module '$this->contextinstanceid'.";
58+
return "The user with id '$this->userid' created the certificate template in course module "
59+
. "'$this->contextinstanceid'.";
5960
}
6061
}
6162

classes/event/template_deleted.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public function get_description() {
5555
return "The user with id '$this->userid' deleted the certificate template with id '$this->objectid'.";
5656
} else {
5757
// Else assume it's a module instance in a course.
58-
return "The user with id '$this->userid' deleted the certificate for course module '$this->contextinstanceid'.";
58+
return "The user with id '$this->userid' deleted the certificate template for course module "
59+
. "'$this->contextinstanceid'.";
5960
}
6061
}
6162

classes/event/template_updated.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public function get_description() {
5555
return "The user with id '$this->userid' updated the certificate template with id '$this->objectid'.";
5656
} else {
5757
// Else assume it's a module instance in a course.
58-
return "The user with id '$this->userid' updated the certificate for course module '$this->contextinstanceid'.";
58+
return "The user with id '$this->userid' updated the certificate template for course module "
59+
. "'$this->contextinstanceid'.";
5960
}
6061
}
6162

0 commit comments

Comments
 (0)