diff options
author | Eric Helgeson <erichelgeson@gmail.com> | 2010-08-06 22:48:00 -0500 |
---|---|---|
committer | Eric Helgeson <erichelgeson@gmail.com> | 2010-08-06 22:51:45 -0500 |
commit | fd2919be18c6045f948b77d4eba1a81212548d4a (patch) | |
tree | 4fdd45de096c5eeea720b883e65aee67aee363db | |
parent | 39277ebf78dbe21e27bb93550689a983bd0237ae (diff) |
Fixed PHP 5.3 by & value
Cleaned up {}'s
-rw-r--r-- | plugins/Gravatar/GravatarPlugin.php | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/plugins/Gravatar/GravatarPlugin.php b/plugins/Gravatar/GravatarPlugin.php index 580852072..8a9721ea9 100644 --- a/plugins/Gravatar/GravatarPlugin.php +++ b/plugins/Gravatar/GravatarPlugin.php @@ -30,11 +30,13 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { class GravatarPlugin extends Plugin { - function onInitializePlugin() { + function onInitializePlugin() + { return true; } - function onStartAvatarFormData($action) { + function onStartAvatarFormData($action) + { $user = common_current_user(); $hasGravatar = $this->hasGravatar($user->id); @@ -43,7 +45,8 @@ class GravatarPlugin extends Plugin } } - function onEndAvatarFormData(&$action) { + function onEndAvatarFormData($action) + { $user = common_current_user(); $hasGravatar = $this->hasGravatar($user->id); @@ -89,7 +92,8 @@ class GravatarPlugin extends Plugin } } - function onStartAvatarSaveForm($action) { + function onStartAvatarSaveForm($action) + { if ($action->arg('add')) { $result = $this->gravatar_save(); @@ -178,7 +182,8 @@ class GravatarPlugin extends Plugin 'success' => true); } - function gravatar_url($email, $size) { + function gravatar_url($email, $size) + { $url = "http://www.gravatar.com/avatar.php?gravatar_id=". md5(strtolower($email)). "&default=".urlencode(Avatar::defaultImage($size)). @@ -197,4 +202,4 @@ class GravatarPlugin extends Plugin return true; } -} +}
\ No newline at end of file |