diff --git a/templates/selectidp-dropdown.php b/templates/selectidp-dropdown.php index 27fbc36e7b5a15f5adca9c6a4e3820509098481a..7b0f531b58a0123ed2ae63970d0ad0c707c2896a 100644 --- a/templates/selectidp-dropdown.php +++ b/templates/selectidp-dropdown.php @@ -10,13 +10,7 @@ $this->data['autofocus'] = 'dropdownlist'; $this->includeAtTemplateBase('includes/header.php'); foreach ($this->data['idplist'] AS $idpentry) { - if (!empty($idpentry['UIInfo']['DisplayName'])) { - /* TODO: remove this branch, If ['UIInfo']['DisplayName'] is available, it will get through to 'name' in the - * metadata parsed with SSP >= 1.13.0, so this code is no longer necessary. Keep it now to avoid breaking - * metadata parsed with previous versions. - */ - $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['UIInfo']['DisplayName']); - } elseif (!empty($idpentry['name'])) { + if (!empty($idpentry['name'])) { $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['name']); } elseif (!empty($idpentry['OrganizationDisplayName'])) { $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['OrganizationDisplayName']); diff --git a/templates/selectidp-links.php b/templates/selectidp-links.php index 83a99379f6d1d245a9660b25d3e1c51fd8332b3a..85aa3ca8bc57c7cf54c12cfb07238f01133756d7 100644 --- a/templates/selectidp-links.php +++ b/templates/selectidp-links.php @@ -10,13 +10,7 @@ $this->data['autofocus'] = 'preferredidp'; $this->includeAtTemplateBase('includes/header.php'); foreach ($this->data['idplist'] AS $idpentry) { - if (isset($idpentry['UIInfo']['DisplayName'])) { - /* TODO: remove this branch, If ['UIInfo']['DisplayName'] is available, it will get through to 'name' in the - * metadata parsed with SSP >= 1.13.0, so this code is no longer necessary. Keep it now to avoid breaking - * metadata parsed with previous versions. - */ - $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['UIInfo']['DisplayName']); - } elseif (isset($idpentry['name'])) { + if (isset($idpentry['name'])) { $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['name']); } elseif (isset($idpentry['OrganizationDisplayName'])) { $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['OrganizationDisplayName']);