Use App->getSenderEmailAddress in include/enotify
This commit is contained in:
parent
a86d1806ae
commit
32ca95a1b0
|
@ -45,10 +45,7 @@ function notification($params)
|
||||||
$hostname = substr($hostname, 0, strpos($hostname, ':'));
|
$hostname = substr($hostname, 0, strpos($hostname, ':'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$sender_email = $a->config['sender_email'];
|
$sender_email = $a->getSenderEmailAddress();
|
||||||
if (empty($sender_email)) {
|
|
||||||
$sender_email = L10n::t('noreply').'@'.$hostname;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($params['type'] != SYSTEM_EMAIL) {
|
if ($params['type'] != SYSTEM_EMAIL) {
|
||||||
$user = dba::selectFirst('user', ['nickname', 'page-flags'],
|
$user = dba::selectFirst('user', ['nickname', 'page-flags'],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user