Skip to content

Commit

Permalink
MDL-58618 auth: Fix idp icon urls
Browse files Browse the repository at this point in the history
  • Loading branch information
John Okely committed Apr 18, 2017
1 parent 0714bcb commit c17d949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/authlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ public static function prepare_identity_providers_for_output($identityproviders,
$data = [];
foreach ($identityproviders as $idp) {
if (!empty($idp['icon'])) {
$idp['iconurl'] = $output->image_url($idp['icon']->key, $idp['icon']->component);
$idp['iconurl'] = $output->image_url($idp['icon']->pix, $idp['icon']->component);
} else if ($idp['iconurl'] instanceof moodle_url) {
$idp['iconurl'] = $idp['iconurl']->out(false);
}
Expand Down

0 comments on commit c17d949

Please sign in to comment.