X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdfrn_notify.php;h=2cc5a62f3c75f84bb3c4f00b2f9f3aa10ba087f9;hb=7e33c1072a4a948941e2522afe0123899b0abddd;hp=f447b54533b06b7bbc3aed7020f155414f9ebebe;hpb=f089b1610e148db0f3952d9fce44974dbecfbc5c;p=friendica.git diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index f447b54533..2cc5a62f3c 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -385,7 +385,7 @@ function dfrn_notify_post(&$a) { '$body' => html_entity_decode(strip_tags(bbcode(stripslashes($datarray['body']))), ENT_QUOTES, 'UTF-8') )); - $res = mail($importer['email'], $from . t(' commented on an item at ') . $a->config['sitename'], + $res = mail($importer['email'], sprintf(t('%s commented on an item at %s'), $from , $a->config['sitename']), $email_tpl, "From: " . t('Administrator') . '@' . $a->get_hostname() ); } } @@ -471,9 +471,8 @@ function dfrn_notify_post(&$a) { '$body' => html_entity_decode(strip_tags(bbcode(stripslashes($datarray['body']))), ENT_QUOTES, 'UTF-8') )); - $res = mail($importer['email'], $from . t(" commented on an item at ") - . $a->config['sitename'], - $email_tpl,t("From: Administrator@") . $a->get_hostname() ); + $res = mail($importer['email'], sprintf( t("%s commented on an item at %s") , $from ,$a->config['sitename']), + $email_tpl, "From: ".t("Administrator") . "@". $a->get_hostname() ); break; } }