@@ -829,7 +829,7 module ApplicationHelper | |||||
829 | # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>') |
|
829 | # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>') | |
830 | def avatar(user, options = { }) |
|
830 | def avatar(user, options = { }) | |
831 | if Setting.gravatar_enabled? |
|
831 | if Setting.gravatar_enabled? | |
832 |
options.merge!({:ssl => |
|
832 | options.merge!({:ssl => (defined?(request) && request.ssl?), :default => Setting.gravatar_default}) | |
833 | email = nil |
|
833 | email = nil | |
834 | if user.respond_to?(:mail) |
|
834 | if user.respond_to?(:mail) | |
835 | email = user.mail |
|
835 | email = user.mail |
General Comments 0
You need to be logged in to leave comments.
Login now