mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-11 03:33:07 +00:00
Merged r17263 into 3.4-stable (#28208).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17264 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e5d1ac83dd
commit
b21ec88435
@ -1423,11 +1423,13 @@ module ApplicationHelper
|
||||
end
|
||||
if email.present?
|
||||
gravatar(email.to_s.downcase, options) rescue nil
|
||||
else
|
||||
elsif user.is_a?(AnonymousUser)
|
||||
options[:size] &&= options[:size].to_s
|
||||
image_tag 'anonymous.png',
|
||||
GravatarHelper::DEFAULT_OPTIONS
|
||||
.except(:default, :rating, :ssl).merge(options)
|
||||
else
|
||||
nil
|
||||
end
|
||||
else
|
||||
''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user