mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-58908 auth_oauth2: Don't kill gravatar
If gravatar is enabled, don't update profile pictures.
This commit is contained in:
parent
b16603770b
commit
95e13556df
@ -247,6 +247,10 @@ class auth extends \auth_plugin_base {
|
||||
if (!empty($user->picture)) {
|
||||
return false;
|
||||
}
|
||||
if (!empty($CFG->enablegravatar)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$picture = $this->get_static_user_picture();
|
||||
if (empty($picture)) {
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user