Skip to content

Commit

Permalink
Change avator path to relative
Browse files Browse the repository at this point in the history
  • Loading branch information
rtryoda committed Jun 30, 2016
1 parent 5eeb1ff commit 631dcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/application_helper_avatar_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def avatar_with_local(user, options = { })
if user.is_a?(User)then
av = user.attachments.find_by_description 'avatar'
if av then
image_url = url_for :only_path => false, :controller => 'account', :action => 'get_avatar', :id => user
image_url = url_for :only_path => true, :controller => 'account', :action => 'get_avatar', :id => user
options[:size] = "64" unless options[:size]
return "<img class=\"gravatar\" width=\"#{options[:size]}\" height=\"#{options[:size]}\" src=\"#{image_url}\" />".html_safe
end
Expand Down

0 comments on commit 631dcc1

Please sign in to comment.