summaryrefslogtreecommitdiff
path: root/actions/subscribe.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-12 16:20:17 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-12 16:20:17 -0400
commit24e865aa72ed393be484cc903cdf010dfe97b06c (patch)
tree1c9fd6060379ae6623d92efd9fbc738453095724 /actions/subscribe.php
parentfd39937f0ba0608e10cf33638ae51f2739b94e51 (diff)
fixup name sent in subject of confirmation email
darcs-hash:20080712202017-84dde-db9bb7d4db42514215cccf76f12ffae4f853dbdc.gz
Diffstat (limited to 'actions/subscribe.php')
-rw-r--r--actions/subscribe.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/actions/subscribe.php b/actions/subscribe.php
index bf9797576..4de831990 100644
--- a/actions/subscribe.php
+++ b/actions/subscribe.php
@@ -74,7 +74,6 @@ class SubscribeAction extends Action {
function notify_email($listenee, $listener) {
if ($listenee->email) {
- global $config;
$profile = $listenee->getProfile();
$other = $listener->getProfile();
$name = $profile->getBestName();
@@ -82,9 +81,9 @@ class SubscribeAction extends Action {
$recipients = $listenee->email;
$headers['From'] = mail_notify_from();
$headers['To'] = $name . ' <' . $listenee->email . '>';
- $headers['Subject'] = sprintf(_('%1$s is now listening to your notices on %2$s.'), $name, $config['site']['name']);
-
- $body = sprintf(_('%1$s is now listening to your notices on %2$s.'), $long_name, $config['site']['name']);
+ $headers['Subject'] = sprintf(_('%1$s is now listening to your notices on %2$s.'), $other->getBestName(),
+ common_config('site', 'name'));
+ $body = sprintf(_('%1$s is now listening to your notices on %2$s.'), $long_name, common_config('site', 'name'));
$body .= "\n\n";
$body .= "\t".$other->profileurl;
$body .= "\n\n";