Commit 0234b014 authored by Richard Mansfield's avatar Richard Mansfield Committed by Gerrit Code Review
Browse files

Merge "remote avatars: support for https-based avatars"

parents 211ccf64 4902e46d
......@@ -1893,6 +1893,9 @@ function remote_avatar($email, $size, $notfound) {
}
$baseurl = 'http://www.gravatar.com/avatar/';
if (stripos(get_config('wwwroot'), 'https://') === 0) {
$baseurl = 'https://secure.gravatar.com/avatar/';
}
if (get_config('remoteavatarbaseurl')) {
$baseurl = get_config('remoteavatarbaseurl');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment