diff --git a/templates/selectidp-dropdown.php b/templates/selectidp-dropdown.php index a3c4d2bf1d014c5720cdd389d689e5eee267c3e5..833520e6781b25e70dd61fe5d00c2e6364079a3c 100644 --- a/templates/selectidp-dropdown.php +++ b/templates/selectidp-dropdown.php @@ -7,20 +7,21 @@ $this->data['header'] = $this->t($this->data['header']); $this->data['autofocus'] = 'dropdownlist'; $this->includeAtTemplateBase('includes/header.php'); +$translator = $this->getTranslator(); foreach ($this->data['idplist'] as $idpentry) { if (!empty($idpentry['name'])) { - $this->getTranslator()->includeInlineTranslation( + $translator->includeInlineTranslation( 'idpname_'.$idpentry['entityid'], $idpentry['name'] ); } elseif (!empty($idpentry['OrganizationDisplayName'])) { - $this->getTranslator()->includeInlineTranslation( + $translator->includeInlineTranslation( 'idpname_'.$idpentry['entityid'], $idpentry['OrganizationDisplayName'] ); } if (!empty($idpentry['description'])) { - $this->getTranslator()->includeInlineTranslation('idpdesc_'.$idpentry['entityid'], $idpentry['description']); + $translator->includeInlineTranslation('idpdesc_'.$idpentry['entityid'], $idpentry['description']); } } ?>