diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-09-18 17:14:00 +0200 |
---|---|---|
committer | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-09-18 17:14:00 +0200 |
commit | cfe60815bc5e96a7711cd836ab829d297aaba269 (patch) | |
tree | 530c8cf482a9bdbdaa44e8cd548cbcbab15141d1 /plugins/Gravatar/GravatarPlugin.php | |
parent | 326e351d448382ae85588f1d7d69e7bf507eebe4 (diff) |
Remove superfluous whitespace.
Diffstat (limited to 'plugins/Gravatar/GravatarPlugin.php')
-rw-r--r-- | plugins/Gravatar/GravatarPlugin.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Gravatar/GravatarPlugin.php b/plugins/Gravatar/GravatarPlugin.php index 8a9721ea9..208262d0e 100644 --- a/plugins/Gravatar/GravatarPlugin.php +++ b/plugins/Gravatar/GravatarPlugin.php @@ -34,17 +34,17 @@ class GravatarPlugin extends Plugin { return true; } - + function onStartAvatarFormData($action) { $user = common_current_user(); $hasGravatar = $this->hasGravatar($user->id); - + if($hasGravatar) { return false; } } - + function onEndAvatarFormData($action) { $user = common_current_user(); @@ -91,7 +91,7 @@ class GravatarPlugin extends Plugin _m('To use a Gravatar first enter in an email address.')); } } - + function onStartAvatarSaveForm($action) { if ($action->arg('add')) { @@ -131,19 +131,19 @@ class GravatarPlugin extends Plugin } return false; } - + function gravatar_save() { $cur = common_current_user(); - + if(empty($cur->email)) { return array('message' => _m('You do not have a email set in your profile.'), 'success' => false); } //Get rid of previous Avatar $this->gravatar_remove(); - + foreach (array(AVATAR_PROFILE_SIZE, AVATAR_STREAM_SIZE, AVATAR_MINI_SIZE) as $size) { $gravatar = new Avatar(); $gravatar->profile_id = $cur->id; @@ -181,7 +181,7 @@ class GravatarPlugin extends Plugin return array('message' => _m('Gravatar removed.'), 'success' => true); } - + function gravatar_url($email, $size) { $url = "http://www.gravatar.com/avatar.php?gravatar_id=". @@ -202,4 +202,4 @@ class GravatarPlugin extends Plugin return true; } -}
\ No newline at end of file +} |