Add avatar_server_url configuration option in order to support Libravatar (#9112).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18124 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-05-04 15:59:50 +00:00
parent 400e1ca2ff
commit bf0246ce83
8 changed files with 42 additions and 6 deletions

View File

@@ -1507,7 +1507,7 @@ module ApplicationHelper
# Returns a link to edit user's avatar if avatars are enabled
def avatar_edit_link(user, options={})
if Setting.gravatar_enabled?
url = "https://gravatar.com"
url = Redmine::Configuration['avatar_server_url']
link_to avatar(user, {:title => l(:button_edit)}.merge(options)), url, :target => '_blank'
end
end