diff --git a/templates/selectidp-dropdown.php b/templates/selectidp-dropdown.php index c7aaa1c603ac8e7004681e76a75fa0e256f31d07..6f54bbf529127cd7f301e8044cc0acd519c3bcdf 100644 --- a/templates/selectidp-dropdown.php +++ b/templates/selectidp-dropdown.php @@ -10,7 +10,9 @@ $this->data['autofocus'] = 'dropdownlist'; $this->includeAtTemplateBase('includes/header.php'); foreach ($this->data['idplist'] AS $idpentry) { - if (isset($idpentry['name'])) { + if (isset($idpentry['UIInfo']['DisplayName'])) { + $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['UIInfo']['DisplayName']); + } elseif (isset($idpentry['name'])) { $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['name']); } elseif (isset($idpentry['OrganizationDisplayName'])) { $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['OrganizationDisplayName']); diff --git a/templates/selectidp-links.php b/templates/selectidp-links.php index 85aa3ca8bc57c7cf54c12cfb07238f01133756d7..07635251214ef501ab3b62b1e64a977abecaf84d 100644 --- a/templates/selectidp-links.php +++ b/templates/selectidp-links.php @@ -10,7 +10,9 @@ $this->data['autofocus'] = 'preferredidp'; $this->includeAtTemplateBase('includes/header.php'); foreach ($this->data['idplist'] AS $idpentry) { - if (isset($idpentry['name'])) { + if (isset($idpentry['UIInfo']['DisplayName'])) { + $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['UIInfo']['DisplayName']); + } elseif (isset($idpentry['name'])) { $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['name']); } elseif (isset($idpentry['OrganizationDisplayName'])) { $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['OrganizationDisplayName']);