diff --git a/templates/selectidp-dropdown.php b/templates/selectidp-dropdown.php index 3f473b7356f1f1e897ed702ea4310525582b28e6..2a2c5110337564d1020efb59322671217b9bc94e 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']); } } ?>