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);
}
}
- function onEndAvatarFormData(&$action) {
+ function onEndAvatarFormData($action)
+ {
$user = common_current_user();
$hasGravatar = $this->hasGravatar($user->id);
}
}
- function onStartAvatarSaveForm($action) {
+ function onStartAvatarSaveForm($action)
+ {
if ($action->arg('add')) {
$result = $this->gravatar_save();
'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)).
return true;
}
-}
+}
\ No newline at end of file