Skip to content

Commit

Permalink
Merge pull request #81 from imphil/html-render-in-popup
Browse files Browse the repository at this point in the history
Re-enable rendering HTML in notification list
  • Loading branch information
maximilienGilet authored Jan 7, 2021
2 parents bfd2a7b + 3f7318e commit 5dcd3f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Twig/NotificationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public function __construct(NotificationManager $notificationManager, TokenStora
public function getFunctions()
{
return array(
new TwigFunction('mgilet_notification_render', [$this, 'render']),
new TwigFunction('mgilet_notification_count', [$this, 'countNotifications']),
new TwigFunction('mgilet_notification_unseen_count', [$this, 'countUnseenNotifications']),
new TwigFunction('mgilet_notification_generate_path', [$this, 'generatePath'])
new TwigFunction('mgilet_notification_render', [$this, 'render'], ['is_safe' => ['html']]),
new TwigFunction('mgilet_notification_count', [$this, 'countNotifications'], ['is_safe' => ['html']]),
new TwigFunction('mgilet_notification_unseen_count', [$this, 'countUnseenNotifications'], ['is_safe' => ['html']]),
new TwigFunction('mgilet_notification_generate_path', [$this, 'generatePath'], ['is_safe' => ['html']])
);
}

Expand Down

0 comments on commit 5dcd3f6

Please sign in to comment.