diff --git a/modules/consentAdmin/www/consentAdmin.php b/modules/consentAdmin/www/consentAdmin.php index cf79cbfbbf9b33cefbed05074e04a4d791e27fb2..f41733de33dbc05bc1c2621c68fe664c7152e365 100644 --- a/modules/consentAdmin/www/consentAdmin.php +++ b/modules/consentAdmin/www/consentAdmin.php @@ -187,7 +187,6 @@ if ($action !== null && $sp_entityid !== null) { } // init template to enable translation of status messages $template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadminajax.php', 'consentAdmin:consentadmin'); - $template->getTranslator()->includeLanguageFile('attributes.php'); // attribute listings translated by this dictionary $template->data['res'] = $res; $template->show(); exit; @@ -207,6 +206,7 @@ $template_sp_content = array(); // Init template $template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadmin.php', 'consentAdmin:consentadmin'); $translator = $template->getTranslator(); +$translator->includeLanguageFile('attributes.php'); // attribute listings translated by this dictionary $sp_empty_name = $translator->getTag('sp_empty_name'); $sp_empty_description = $translator->getTag('sp_empty_description');