Skip to content
Snippets Groups Projects
Commit d0efbed5 authored by Jaime Perez's avatar Jaime Perez
Browse files

Remove code that's no longer necessary.

parent a9f3d1a2
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
......
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment