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

Move mtype array after Template-instantiation

`noop()` is a method on the template after all.
parent b7374dd2
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,8 @@ foreach ($metaentries['remote'] as $key => $value) {
}
}
$t = new SimpleSAML_XHTML_Template($config, 'core:frontpage_federation.tpl.php');
# look up translated string
$mtype = array(
'saml20-sp-remote' => $t->noop('{admin:metadata_saml20-sp}'),
......@@ -125,7 +127,6 @@ $mtype = array(
'adfs-idp-hosted' => $t->noop('{admin:metadata_adfs-idp}'),
);
$t = new SimpleSAML_XHTML_Template($config, 'core:frontpage_federation.tpl.php');
$t->data['pageid'] = 'frontpage_federation';
$t->data['isadmin'] = $isadmin;
$t->data['loginurl'] = $loginurl;
......
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