Permalink
Browse files

Merge branch 'MDL-59539-33' of git://github.com/tobiasreischmann/mood…

…le into MOODLE_33_STABLE
  • Loading branch information...
dmonllao committed Jul 17, 2017
2 parents 7ebaf90 + 4699f2a commit aa11add8a6bb442aba88f82adb9e328fce161744
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/classes/oauth2/api.php
@@ -349,7 +349,7 @@ public static function get_user_field_mappings(issuer $issuer) {
*/
protected static function guess_image($issuer) {
if (empty($issuer->get('image'))) {
$baseurl = parse_url($issuer->get('discoveryurl'));
$baseurl = parse_url($issuer->get('baseurl'));
$imageurl = $baseurl['scheme'] . '://' . $baseurl['host'] . '/favicon.ico';
$issuer->set('image', $imageurl);
$issuer->update();

0 comments on commit aa11add

Please sign in to comment.