Avoid passing application_url argument to all notification templates

This commit is contained in:
Frederic Guillot
2017-02-19 12:14:54 -05:00
parent 778c9d8212
commit dc7c7667ec
24 changed files with 23 additions and 27 deletions

View File

@@ -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);
}
/**