Remove "notice" with new function

This commit is contained in:
Michael 2022-10-17 20:17:25 +00:00
parent 57e9404729
commit 897dbb30cf
10 changed files with 21 additions and 21 deletions

View file

@ -63,7 +63,7 @@ function forumdirectory_content(App $a)
global $forumdirectory_search;
if ((DI::config()->get('system', 'block_public')) && (!local_user()) && (!remote_user())) {
notice(DI::l10n()->t('Public access denied.') . EOL);
DI::sysmsg()->addNotice(DI::l10n()->t('Public access denied.') . EOL);
return;
}
@ -135,7 +135,7 @@ function forumdirectory_content(App $a)
}
DBA::close($r);
} else {
notice(DI::l10n()->t("No entries \x28some entries may be hidden\x29."));
DI::sysmsg()->addNotice(DI::l10n()->t("No entries \x28some entries may be hidden\x29."));
}
$tpl = Renderer::getMarkupTemplate('directory_header.tpl');