diff options
author | Evan Prodromou <evan@status.net> | 2009-12-11 09:58:53 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-11 09:58:53 -0500 |
commit | 4919671bbd3b9d59922990a6a9b2a9eb1414f338 (patch) | |
tree | 526be3ad3396be04926eaf95ccdd049a43478824 /plugins | |
parent | 2c9b30a31b97a4d03d0f246c9ad938e44c1efc23 (diff) | |
parent | 85473ecf94e92cd0e6503e4d27ea26452076aafd (diff) |
Merge branch '0.9.x' into forward
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Gravatar/GravatarPlugin.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Gravatar/GravatarPlugin.php b/plugins/Gravatar/GravatarPlugin.php index b18f62726..3c61a682e 100644 --- a/plugins/Gravatar/GravatarPlugin.php +++ b/plugins/Gravatar/GravatarPlugin.php @@ -92,11 +92,23 @@ class GravatarPlugin extends Plugin function onStartAvatarSaveForm($action) { if ($action->arg('add')) { $result = $this->gravatar_save(); + + if($result['success']===true) { + common_broadcast_profile(common_current_user()->getProfile()); + } + $action->showForm($result['message'], $result['success']); + return false; } else if ($action->arg('remove')) { $result = $this->gravatar_remove(); + + if($result['success']===true) { + common_broadcast_profile(common_current_user()->getProfile()); + } + $action->showForm($result['message'], $result['success']); + return false; } else { return true; |