diff options
Diffstat (limited to 'plugins/FacebookSSO/lib/facebookclient.php')
-rw-r--r-- | plugins/FacebookSSO/lib/facebookclient.php | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/plugins/FacebookSSO/lib/facebookclient.php b/plugins/FacebookSSO/lib/facebookclient.php index 6753243ed..cf00b55e3 100644 --- a/plugins/FacebookSSO/lib/facebookclient.php +++ b/plugins/FacebookSSO/lib/facebookclient.php @@ -673,25 +673,29 @@ class Facebookclient */ function mailFacebookDisconnect() { - $profile = $user->getProfile(); + $profile = $this->user->getProfile(); $siteName = common_config('site', 'name'); - common_switch_locale($user->language); + common_switch_locale($this->user->language); - $subject = sprintf( - _m('Your Facebook connection has been removed'), - $siteName - ); + $subject = _m('Your Facebook connection has been removed'); $msg = <<<BODY -Hi, %1$s. We're sorry to inform you we are unable to publish your notice to -Facebook, and have removed the connection between your %2$s account and Facebook. +Hi %1$s, + +We're sorry to inform you we are unable to publish your notice to +Facebook, and have removed the connection between your %2$s account and +Facebook. + +This may have happened because you have removed permission for %2$s +to post on your behalf, or perhaps you have deactivated your Facebook +account. You can reconnect your %s account to Facebook at any time by +logging in with Facebook again. + +Sincerely, -This may have happened because you have removed permission for %2$s to post on -your behalf, or perhaps you have deactivated your Facebook account. You can -reconnect your %s account to Facebook at any time by logging in with Facebook -again. +%2$s BODY; $body = sprintf( _m($msg), |