Add anti-flood 'find my polls'
This commit is contained in:
parent
278e478d1a
commit
d7d9b11fbd
@ -43,7 +43,7 @@ if (!empty($_POST['mail'])) {
|
|||||||
$smarty->assign('polls', $polls);
|
$smarty->assign('polls', $polls);
|
||||||
$body = $smarty->fetch('mail/find_polls.tpl');
|
$body = $smarty->fetch('mail/find_polls.tpl');
|
||||||
|
|
||||||
$mailService->send($mail, __('Homepage', 'Where are my polls'), $body);
|
$mailService->send($mail, __('Homepage', 'Where are my polls'), $body, '', 'SEND_POLLS');
|
||||||
$message = new Message('success', __('FindPolls', 'Polls sent'));
|
$message = new Message('success', __('FindPolls', 'Polls sent'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('warning', __('Error', 'No polls found'));
|
$message = new Message('warning', __('Error', 'No polls found'));
|
||||||
|
Loading…
Reference in New Issue
Block a user