improvements
This commit is contained in:
parent
ca67e3111c
commit
ed9756225d
|
@ -74,8 +74,7 @@ function notification($params)
|
||||||
|
|
||||||
$sender_email = DI::emailer()->getSiteEmailAddress();
|
$sender_email = DI::emailer()->getSiteEmailAddress();
|
||||||
|
|
||||||
$user = DBA::selectFirst('user', ['nickname', 'page-flags'],
|
$user = User::getById($params['uid'], ['nickname', 'page-flags']);
|
||||||
['uid' => $params['uid']]);
|
|
||||||
|
|
||||||
// There is no need to create notifications for forum accounts
|
// There is no need to create notifications for forum accounts
|
||||||
if (!DBA::isResult($user) || in_array($user["page-flags"], [User::PAGE_FLAGS_COMMUNITY, User::PAGE_FLAGS_PRVGROUP])) {
|
if (!DBA::isResult($user) || in_array($user["page-flags"], [User::PAGE_FLAGS_COMMUNITY, User::PAGE_FLAGS_PRVGROUP])) {
|
||||||
|
|
|
@ -252,7 +252,7 @@ class Update
|
||||||
}
|
}
|
||||||
$sent[] = $admin['email'];
|
$sent[] = $admin['email'];
|
||||||
|
|
||||||
$lang = (($admin['language']) ? $admin['language'] : 'en');
|
$lang = $admin['language'] ?? 'en';
|
||||||
$l10n = DI::l10n()->withLang($lang);
|
$l10n = DI::l10n()->withLang($lang);
|
||||||
|
|
||||||
$preamble = Strings::deindent($l10n->t("
|
$preamble = Strings::deindent($l10n->t("
|
||||||
|
|
Loading…
Reference in a new issue