diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2012-01-06 09:10:21 +0100 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2012-01-06 09:10:21 +0100 |
commit | a9670cbb7d2cab644ee9d499aade98164f92631a (patch) | |
tree | f136b6448ecd23ec7c987bf26b8d49be25a8aca5 /include/enotify.php | |
parent | 93563370c96848948d28ed39e13284ebaf7f430a (diff) | |
parent | 53878625f6ecc014283cefbd84f92b6f1294b8a3 (diff) | |
download | volse-hubzilla-a9670cbb7d2cab644ee9d499aade98164f92631a.tar.gz volse-hubzilla-a9670cbb7d2cab644ee9d499aade98164f92631a.tar.bz2 volse-hubzilla-a9670cbb7d2cab644ee9d499aade98164f92631a.zip |
Merge remote-tracking branch 'friendica/master'
Diffstat (limited to 'include/enotify.php')
-rw-r--r-- | include/enotify.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/enotify.php b/include/enotify.php index f6f291e5d..9df9b57e5 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -65,6 +65,19 @@ function notification($params) { $itemlink = $params['link']; } + if($params['type'] == NOTIFY_SUGGEST) { + $subject = sprintf( t('Friend suggestion received at %s'), $sitename); + $preamble = sprintf( t('You\'ve received a friend suggestion from \'%s\' at %s'), $params['source_name'], $sitename); + $body = t('Name:') . ' ' . $params['item']['name'] . "\n"; + $body .= t('Photo:') . ' ' . $params['item']['photo'] . "\n"; + $body .= sprintf( t('You may visit their profile at %s'),$params['item']['url']); + + $sitelink = t('Please visit %s to approve or reject the suggestion.'); + $tsitelink = sprintf( $sitelink, $siteurl ); + $hsitelink = sprintf( $sitelink, '<a href="' . $siteurl . '">' . $sitename . '</a>'); + $itemlink = $params['link']; + } + if($params['type'] == NOTIFY_CONFIRM) { } |