From 451b299bc34eaa1408fb533eb1b2db9b897d2f2f Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Sun, 28 Aug 2016 22:03:02 +0200 Subject: [PATCH] Update add_comment.php: update sendUpdateNotification parameters order --- 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 2218170..dd3e247 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')); }