Update add_comment.php: update sendUpdateNotification parameters order

This commit is contained in:
Gautier Pelloux-Prayer 2016-08-28 22:03:02 +02:00
parent c5b9c4152d
commit 451b299bc3

View File

@ -70,7 +70,7 @@ if (!$poll) {
$result = $pollService->addComment($poll_id, $name, $comment); $result = $pollService->addComment($poll_id, $name, $comment);
if ($result) { if ($result) {
$message = new Message('success', __('Comments', 'Comment added')); $message = new Message('success', __('Comments', 'Comment added'));
$notificationService->sendUpdateNotification($poll, $mailService, $name, NotificationService::ADD_COMMENT); $notificationService->sendUpdateNotification($poll, NotificationService::ADD_COMMENT, $name);
} else { } else {
$message = new Message('danger', __('Error', 'Comment failed')); $message = new Message('danger', __('Error', 'Comment failed'));
} }