From 05faa85074d55f851b1805938fada346b07c39c8 Mon Sep 17 00:00:00 2001
From: Antonin <antonin.murtin@gmail.com>
Date: Mon, 5 Sep 2016 16:41:05 +0200
Subject: [PATCH] Merge branch 'patch-1' into 'develop'

Update add_comment.php: update sendUpdateNotification parameters order



See merge request !150
---
 action/add_comment.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/action/add_comment.php b/action/add_comment.php
index 22181707..dd3e247c 100644
--- a/action/add_comment.php
+++ b/action/add_comment.php
@@ -70,7 +70,7 @@ if (!$poll) {
         $result = $pollService->addComment($poll_id, $name, $comment);
         if ($result) {
             $message = new Message('success', __('Comments', 'Comment added'));
-            $notificationService->sendUpdateNotification($poll, $mailService, $name, NotificationService::ADD_COMMENT);
+            $notificationService->sendUpdateNotification($poll, NotificationService::ADD_COMMENT, $name);
         } else {
             $message = new Message('danger', __('Error', 'Comment failed'));
         }
-- 
GitLab