From 2ec274f5ffc7e4164d6cf30beae3f736e6d91310 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Wed, 25 Feb 2015 14:28:25 +0800 Subject: [PATCH] MDL-48142 core_badge: final polishing on badge award event --- lib/badgeslib.php | 2 +- lib/classes/event/badge_awarded.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/badgeslib.php b/lib/badgeslib.php index 39f48d71531..bf5b4e1e9d8 100644 --- a/lib/badgeslib.php +++ b/lib/badgeslib.php @@ -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(); diff --git a/lib/classes/event/badge_awarded.php b/lib/classes/event/badge_awarded.php index b1a3f0c7867..4c9e0215eb7 100644 --- a/lib/classes/event/badge_awarded.php +++ b/lib/classes/event/badge_awarded.php @@ -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."'."; } /**