]> git.mxchange.org Git - friendica.git/commitdiff
Use App->getSenderEmailAddress in include/enotify
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 7 Apr 2018 01:47:42 +0000 (21:47 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 7 Apr 2018 01:47:42 +0000 (21:47 -0400)
include/enotify.php

index d1c7dc1f41ad153bf57a07a99a94836f4159eebb..68208ec5ac612f2d59ac743dbab082d446abb5e7 100644 (file)
@@ -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'],