MDL-48142 core_badge: final polishing on badge award event

This commit is contained in:
Simey Lameze
2015-02-25 14:25:33 +00:00
committed by Dan Poltawski
parent 3d9c8578f7
commit 2ec274f5ff
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -403,7 +403,7 @@ class badge {
'context' => $this->get_context(),
'objectid' => $this->id,
'relateduserid' => $userid,
'other' => array('expiredate' => $issued->dateexpire, 'badgeissuedid' => $result)
'other' => array('dateexpire' => $issued->dateexpire, 'badgeissuedid' => $result)
);
\core\event\badge_awarded::create($eventdata)->trigger();
+1 -1
View File
@@ -66,7 +66,7 @@ class badge_awarded extends base {
* @return string
*/
public function get_description() {
return "The user with the id '$this->relateduserid' has been awarded the badge with id '".$this->objectid."'.";
return "The user with id '$this->relateduserid' has been awarded the badge with id '".$this->objectid."'.";
}
/**