personalise emails send from the server

This commit is contained in:
Tobias Diekershoff 2015-10-07 06:22:15 +02:00
parent b60cf21f8a
commit dd9f475ff6

View file

@ -20,7 +20,11 @@ function notification($params) {
$siteurl = $a->get_baseurl(true); $siteurl = $a->get_baseurl(true);
$thanks = t('Thank You,'); $thanks = t('Thank You,');
$sitename = $a->config['sitename']; $sitename = $a->config['sitename'];
if (!x($a->config['admin_name'])) {
$site_admin = sprintf( t('%s Administrator'), $sitename); $site_admin = sprintf( t('%s Administrator'), $sitename);
} else {
$site_admin = sprintf( t('%1$s, %2$s Administrator'), $a->config['admin_name'], $sitename);
}
$nickname = ""; $nickname = "";
$sender_name = $sitename; $sender_name = $sitename;