From 0ebdd4ddfd898628cc30e34e55e97f88e5e30a71 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 2 Jan 2015 21:48:26 -0500 Subject: Cleanup and fixes --- app/Subscriber/NotificationSubscriber.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Subscriber/NotificationSubscriber.php') diff --git a/app/Subscriber/NotificationSubscriber.php b/app/Subscriber/NotificationSubscriber.php index 4412636f..1580f6dc 100644 --- a/app/Subscriber/NotificationSubscriber.php +++ b/app/Subscriber/NotificationSubscriber.php @@ -44,13 +44,13 @@ class NotificationSubscriber extends Base implements EventSubscriberInterface ); } - public function execute(GenericEvent $event) + public function execute(GenericEvent $event, $event_name) { $values = $this->getTemplateData($event); $users = $this->notification->getUsersList($values['task']['project_id']); if ($users) { - $this->notification->sendEmails($this->templates[$event->getName()], $users, $values); + $this->notification->sendEmails($this->templates[$event_name], $users, $values); } } -- cgit v1.2.3