MDL-58908 auth_oauth2: Don't kill gravatar

If gravatar is enabled, don't update profile pictures.
This commit is contained in:
Damyon Wiese 2017-05-12 11:43:47 +08:00
parent b16603770b
commit 95e13556df

View File

@ -247,6 +247,10 @@ class auth extends \auth_plugin_base {
if (!empty($user->picture)) { if (!empty($user->picture)) {
return false; return false;
} }
if (!empty($CFG->enablegravatar)) {
return false;
}
$picture = $this->get_static_user_picture(); $picture = $this->get_static_user_picture();
if (empty($picture)) { if (empty($picture)) {
return false; return false;