- if oldsetting != user.image_use_gravatar
- flash[:warning] = if user.image_use_gravatar
- t "user.account.gravatar.enabled"
- else
- t "user.account.gravatar.disabled"
- end
+ oldsetting != user.image_use_gravatar
+ end
+
+ ##
+ # display a message about th current status of the gravatar setting
+ def gravatar_status_message(user)
+ if user.image_use_gravatar
+ return t "user.account.gravatar.enabled"
+ else
+ return t "user.account.gravatar.disabled"