Browse Source

Use App->getSenderEmailAddress in include/enotify

pull/4764/head
Hypolite Petovan 4 years ago
parent
commit
32ca95a1b0
  1. 5
      include/enotify.php

5
include/enotify.php

@ -45,10 +45,7 @@ function notification($params)
$hostname = substr($hostname, 0, strpos($hostname, ':'));
}
$sender_email = $a->config['sender_email'];
if (empty($sender_email)) {
$sender_email = L10n::t('noreply').'@'.$hostname;
}
$sender_email = $a->getSenderEmailAddress();
if ($params['type'] != SYSTEM_EMAIL) {
$user = dba::selectFirst('user', ['nickname', 'page-flags'],

Loading…
Cancel
Save