]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixup name sent in subject of confirmation email
authorEvan Prodromou <evan@prodromou.name>
Sat, 12 Jul 2008 20:20:17 +0000 (16:20 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 12 Jul 2008 20:20:17 +0000 (16:20 -0400)
darcs-hash:20080712202017-84dde-db9bb7d4db42514215cccf76f12ffae4f853dbdc.gz

actions/subscribe.php

index bf97975768d53e59e9e07b343e3baf3f959edeb2..4de831990c5807762ab747235921b6f54aaa1dcf 100644 (file)
@@ -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";