@@ -626,6 +626,7 module ApplicationHelper | |||
|
626 | 626 | # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>') |
|
627 | 627 | def avatar(user, options = { }) |
|
628 | 628 | if Setting.gravatar_enabled? |
|
629 | options.merge!({:ssl => Setting.protocol == 'https'}) | |
|
629 | 630 | email = nil |
|
630 | 631 | if user.respond_to?(:mail) |
|
631 | 632 | email = user.mail |
General Comments 0
You need to be logged in to leave comments.
Login now