summaryrefslogtreecommitdiff
path: root/plugins/Gravatar/GravatarPlugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Gravatar/GravatarPlugin.php')
-rw-r--r--plugins/Gravatar/GravatarPlugin.php17
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