Skip to content
Snippets Groups Projects
Commit 239db7b0 authored by Hanne Moa's avatar Hanne Moa
Browse files

Move context-changing function out of template

For #454 and #465
parent afc57cae
No related branches found
No related tags found
No related merge requests found
<?php $this->includeAtTemplateBase('includes/header.php'); ?>
<!-- default theme -->
<?php
$this->getTranslator()->includeLanguageFile('attributes.php'); // attribute listings translated by this dictionary
?>
<script>
function setConsentText(consentStatus, show_spid) {
......
......@@ -187,6 +187,7 @@ 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;
......
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