diff --git a/action/add_comment.php b/action/add_comment.php
index 71b9ca3a9e5d0e03d3f816483879f9c69dbcec16..11c9152d36b42ea2d6c6ffdb716cdeb73cc27c43 100644
--- a/action/add_comment.php
+++ b/action/add_comment.php
@@ -43,7 +43,7 @@ $logService = new LogService();
 $pollService = new PollService($connect, $logService);
 $inputService = new InputService();
 $mailService = new MailService($config['use_smtp'], $config['smtp_options'], $config['use_sendmail']);
-$notificationService = new NotificationService($mailService);
+$notificationService = new NotificationService($mailService, $smarty);
 $securityService = new SecurityService();
 
 /* PAGE */
diff --git a/adminstuds.php b/adminstuds.php
index 26a2e2825d8086ba6d5d41df73a680dbe237d9bc..93e7b418bfe259de7941d1d57b79f36c6ee2c73e 100644
--- a/adminstuds.php
+++ b/adminstuds.php
@@ -51,7 +51,7 @@ $pollService = new PollService($connect, $logService);
 $adminPollService = new AdminPollService($connect, $pollService, $logService);
 $inputService = new InputService();
 $mailService = new MailService($config['use_smtp'], $config['smtp_options'], $config['use_sendmail']);
-$notificationService = new NotificationService($mailService);
+$notificationService = new NotificationService($mailService, $smarty);
 $sessionService = new SessionService();
 
 /* PAGE */
diff --git a/app/classes/Framadate/Services/NotificationService.php b/app/classes/Framadate/Services/NotificationService.php
index 615629c3dcb02af643ce902bc9040d37f45a8c7a..02a74e49909c24cbecc6213668b3b8df8b8214ae 100644
--- a/app/classes/Framadate/Services/NotificationService.php
+++ b/app/classes/Framadate/Services/NotificationService.php
@@ -15,9 +15,11 @@ class NotificationService {
     const DELETED_POLL = 11;
 
     private $mailService;
+    private $smarty;
 
-    function __construct(MailService $mailService) {
+    function __construct(MailService $mailService, \Smarty $smarty) {
         $this->mailService = $mailService;
+        $this->smarty = $smarty;
     }
 
     /**
diff --git a/studs.php b/studs.php
index 5dec7c90e994a2e8e37f552837f2f79595acb421..2d30882058803abc37db0a6cb5deed028f99221f 100644
--- a/studs.php
+++ b/studs.php
@@ -59,7 +59,7 @@ $logService = new LogService();
 $pollService = new PollService($connect, $logService);
 $inputService = new InputService();
 $mailService = new MailService($config['use_smtp'], $config['smtp_options'], $config['use_sendmail']);
-$notificationService = new NotificationService($mailService);
+$notificationService = new NotificationService($mailService, $smarty);
 $securityService = new SecurityService();
 $sessionService = new SessionService();