Skip to content

Commit

Permalink
Raw tokens should be null if there is no stamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Jul 30, 2024
1 parent e8ad83f commit 14a6173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateway/MailerGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private function renderEmailTemplate(Parcel $parcel): string
$template->body = $this->replaceTokensAndInsertTags($parcel, StringUtil::restoreBasicEntities($languageConfig->getString('email_html')));
$template->language = LocaleUtil::formatAsLanguageTag($languageConfig->getString('language'));
$template->parsedTokens = null === $tokenCollection ? [] : $tokenCollection->forSimpleTokenParser();
$template->rawTokens = null === $tokenCollection ? [] : $tokenCollection;
$template->rawTokens = $tokenCollection;

return $this->contaoFramework->getAdapter(Controller::class)->convertRelativeUrls($this->replaceInsertTags($template->parse()));
}
Expand Down

0 comments on commit 14a6173

Please sign in to comment.