Skip to content

Commit

Permalink
FEATURE: enable node rendering
Browse files Browse the repository at this point in the history
Releases: master
  • Loading branch information
Jens Schuett committed Jan 9, 2017
1 parent 4ac1f26 commit 3976980
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Classes/Psmb/Newsletter/Service/FusionMailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3976980

Please sign in to comment.