From 39769809ad3ba848013f071576af1b900aeb35c3 Mon Sep 17 00:00:00 2001 From: Jens Schuett Date: Mon, 9 Jan 2017 16:17:47 +0100 Subject: [PATCH] FEATURE: enable node rendering Releases: master --- Classes/Psmb/Newsletter/Service/FusionMailService.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Classes/Psmb/Newsletter/Service/FusionMailService.php b/Classes/Psmb/Newsletter/Service/FusionMailService.php index 72edd9e..7a4abb3 100644 --- a/Classes/Psmb/Newsletter/Service/FusionMailService.php +++ b/Classes/Psmb/Newsletter/Service/FusionMailService.php @@ -133,16 +133,19 @@ public function generateActivationLetter(Subscriber $subscriber, $hash) * * @param Subscriber $subscriber * @param array $subscription - * @return string + * @param null|NodeInterface $node + * @return array */ - public function generateSubscriptionLetter(Subscriber $subscriber, $subscription) + public function generateSubscriptionLetter(Subscriber $subscriber, $subscription, $node = NULL) { $dimensions = isset($subscription['dimensions']) ? $subscription['dimensions'] : null; $siteNode = $this->getSiteNode($dimensions); + $node = $node?:$siteNode; + $this->view->assign('value', [ 'site' => $siteNode, 'documentNode' => $siteNode, - 'node' => $siteNode, + 'node' => $node, 'subscriber' => $subscriber, 'subscription' => $subscription, 'globalSettings' => $this->globalSettings