Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
0234b014
Commit
0234b014
authored
May 03, 2011
by
Richard Mansfield
Committed by
Gerrit Code Review
May 03, 2011
Browse files
Merge "remote avatars: support for https-based avatars"
parents
211ccf64
4902e46d
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/user.php
View file @
0234b014
...
...
@@ -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'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment