aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-19 22:00:31 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-19 22:00:31 -0700
commite583ba0bff7e506aadd2c50dd73f45b69ed4e58f (patch)
treebb0957580cdcca8581f508609928ab8d3494547e /mod
parent9a03834cefca5026057b2316c52c2b71e0d07f49 (diff)
downloadvolse-hubzilla-e583ba0bff7e506aadd2c50dd73f45b69ed4e58f.tar.gz
volse-hubzilla-e583ba0bff7e506aadd2c50dd73f45b69ed4e58f.tar.bz2
volse-hubzilla-e583ba0bff7e506aadd2c50dd73f45b69ed4e58f.zip
improved "friendship accepted" emails enumerating what has
changed in the relationship and what you can do now.
Diffstat (limited to 'mod')
-rw-r--r--mod/dfrn_confirm.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php
index 1f0ebee14..f1a744689 100644
--- a/mod/dfrn_confirm.php
+++ b/mod/dfrn_confirm.php
@@ -164,7 +164,9 @@ function dfrn_confirm_post(&$a) {
);
if((count($r)) && ($r[0]['notify-flags'] & NOTIFY_CONFIRM)) {
- $tpl = file_get_contents('view/intro_complete_eml.tpl');
+ $tpl = (($new_relation == $REL_BUD)
+ ? file_get_contents('view/friend_complete_eml.tpl');
+ : file_get_contents('view/intro_complete_eml.tpl'));
$email_tpl = replace_macros($tpl, array(
'$sitename' => $a->config['sitename'],
@@ -176,7 +178,7 @@ function dfrn_confirm_post(&$a) {
'$uid' => $newuid )
);
- $res = mail($r[0]['email'], t("Introduction accepted at ") . $a->config['sitename'],
+ $res = mail($r[0]['email'], t("Connection accepted at ") . $a->config['sitename'],
$email_tpl, 'From: ' . t('Administrator') . '@' . $_SERVER[SERVER_NAME] );
if(!$res) {
notice( t("Email notification failed.") . EOL );