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