From dc7c7667ec2eb648ca097d00c25a00f7cc9a7d19 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 19 Feb 2017 12:14:54 -0500 Subject: Avoid passing application_url argument to all notification templates --- app/Notification/MailNotification.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/Notification') diff --git a/app/Notification/MailNotification.php b/app/Notification/MailNotification.php index 9e042820..90ca4324 100644 --- a/app/Notification/MailNotification.php +++ b/app/Notification/MailNotification.php @@ -62,10 +62,7 @@ class MailNotification extends Base implements NotificationInterface */ public function getMailContent($event_name, array $event_data) { - return $this->template->render( - 'notification/'.str_replace('.', '_', $event_name), - $event_data + array('application_url' => $this->configModel->get('application_url')) - ); + return $this->template->render('notification/'.str_replace('.', '_', $event_name), $event_data); } /** -- cgit v1.2.3