mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user