##// END OF EJS Templates
Merged r4103 from trunk....
Eric Davis -
r4045:8bd0ff03a08a
parent child
Show More
@@ -824,7 +824,7 module ApplicationHelper
824 # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>')
824 # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>')
825 def avatar(user, options = { })
825 def avatar(user, options = { })
826 if Setting.gravatar_enabled?
826 if Setting.gravatar_enabled?
827 options.merge!({:ssl => Setting.protocol == 'https', :default => Setting.gravatar_default})
827 options.merge!({:ssl => (defined?(request) && request.ssl?), :default => Setting.gravatar_default})
828 email = nil
828 email = nil
829 if user.respond_to?(:mail)
829 if user.respond_to?(:mail)
830 email = user.mail
830 email = user.mail
General Comments 0
You need to be logged in to leave comments. Login now