summaryrefslogtreecommitdiff
path: root/plugins/TwitterBridge/twitter.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TwitterBridge/twitter.php')
-rw-r--r--plugins/TwitterBridge/twitter.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TwitterBridge/twitter.php b/plugins/TwitterBridge/twitter.php
index 896eee2da..21adc7a90 100644
--- a/plugins/TwitterBridge/twitter.php
+++ b/plugins/TwitterBridge/twitter.php
@@ -335,9 +335,9 @@ function remove_twitter_link($flink)
function mail_twitter_bridge_removed($user)
{
- $profile = $user->getProfile();
+ common_init_locale($user->language);
- common_switch_locale($user->language);
+ $profile = $user->getProfile();
$subject = sprintf(_m('Your Twitter bridge has been disabled.'));
@@ -354,7 +354,7 @@ function mail_twitter_bridge_removed($user)
common_local_url('twittersettings'),
common_config('site', 'name'));
- common_switch_locale();
+ common_init_locale();
return mail_to_user($user, $subject, $body);
}