Remove "notice" with new function
This commit is contained in:
parent
57e9404729
commit
897dbb30cf
10 changed files with 21 additions and 21 deletions
|
@ -51,7 +51,7 @@ function notifyall_post(App $a)
|
|||
$recipients = DBA::p("SELECT DISTINCT `email` FROM `user` WHERE `verified` AND NOT `account_removed` AND NOT `account_expired` $sql_extra");
|
||||
|
||||
if (! $recipients) {
|
||||
notice(DI::l10n()->t('No recipients found.') . EOL);
|
||||
DI::sysmsg()->addNotice(DI::l10n()->t('No recipients found.') . EOL);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ function notifyall_post(App $a)
|
|||
DI::emailer()->send($notifyEmail->withRecipient($recipient['email']));
|
||||
}
|
||||
|
||||
info(DI::l10n()->t('Emails sent'));
|
||||
DI::sysmsg()->addInfo(DI::l10n()->t('Emails sent'));
|
||||
DI::baseUrl()->redirect('admin');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue