summaryrefslogtreecommitdiff
path: root/lib/mail.php
diff options
context:
space:
mode:
authormillette <millette@controlyourself.ca>2008-12-04 15:34:33 -0500
committermillette <millette@controlyourself.ca>2008-12-04 15:34:33 -0500
commit9c3c1e0272c34adf315612d717c3640923d4fe62 (patch)
treea7a40eeb694674d1c03cd946d66b51565cafabdc /lib/mail.php
parentf9c88fe09c3f3946c8599154e1c4dc4919bf72df (diff)
trac494 email is now in recipient's language
darcs-hash:20081204203433-099f7-41be8f47b2a8e647414225f26318da005144006d.gz
Diffstat (limited to 'lib/mail.php')
-rw-r--r--lib/mail.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mail.php b/lib/mail.php
index 4c73a0b7b..b8d3236f6 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -115,6 +115,8 @@ function mail_subscribe_notify($listenee, $listener) {
function mail_subscribe_notify_profile($listenee, $other) {
if ($listenee->email && $listenee->emailnotifysub) {
+ // use the recipients localization
+ common_init_locale($listenee->language);
$profile = $listenee->getProfile();
$name = $profile->getBestName();
$long_name = ($other->fullname) ? ($other->fullname . ' (' . $other->nickname . ')') : $other->nickname;
@@ -130,6 +132,9 @@ function mail_subscribe_notify_profile($listenee, $other) {
common_config('site', 'name'),
$other->profileurl,
common_config('site', 'name'));
+
+ // reset localization
+ common_init_locale();
mail_send($recipients, $headers, $body);
}
}