##// END OF EJS Templates
Enable SSL gravatars when Redmine is using https. (#2718)...
Eric Davis -
r2728:06ff26f09271
parent child
Show More
@@ -626,6 +626,7 module ApplicationHelper
626 # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>')
626 # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>')
627 def avatar(user, options = { })
627 def avatar(user, options = { })
628 if Setting.gravatar_enabled?
628 if Setting.gravatar_enabled?
629 options.merge!({:ssl => Setting.protocol == 'https'})
629 email = nil
630 email = nil
630 if user.respond_to?(:mail)
631 if user.respond_to?(:mail)
631 email = user.mail
632 email = user.mail
General Comments 0
You need to be logged in to leave comments. Login now