Skip to content
Snippets Groups Projects
Commit 92b0b48e authored by Mads Freek Petersen's avatar Mads Freek Petersen
Browse files

Made idp_name available for the consent template, translated it and used it as...

Made idp_name available for the consent template, translated it and used it as a replacement string for the 'consent_accept' string.


git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@708 44740490-163a-0410-bde0-09ae8108e29a
parent e575e2d0
No related branches found
No related tags found
No related merge requests found
......@@ -3,12 +3,13 @@
$this->includeLanguageFile('consent.php');
$this->includeInlineTranslation('spname', $this->data['sp_name']);
$this->includeInlineTranslation('IDPNAME', $this->data['idp_name']);
?>
<div id="content">
<p><?php echo htmlspecialchars($this->t('consent_notice')); ?> <strong><?php echo htmlspecialchars($this->t('spname')); ?></strong>.
<?php echo htmlspecialchars($this->t('consent_accept')) ?>
<?php echo htmlspecialchars($this->t('consent_accept', true, true, array('IDPNAME' => ''))) ?>
</p>
<?php if ($this->data['sppp'] !== FALSE) {
......@@ -28,7 +29,7 @@
<form style="display: inline; margin-left: .5em;" action="<?php echo htmlspecialchars($this->data['noconsent']); ?>" method="GET">
<input type="submit" value="<?php echo htmlspecialchars($this->t('no')) ?>" />
</form>
<p>
<table style="font-size: x-small">
<?php
......
......@@ -275,6 +275,7 @@ if($needAuth && !$isPassive) {
$t = new SimpleSAML_XHTML_Template($config, 'consent.php', 'attributes.php');
$t->data['header'] = 'Consent';
$t->data['sp_name'] = $sp_name;
$t->data['idp_name'] = (isset($idpmetadata['name']) ? $idpmetadata['name'] : $idpentityid);
$t->data['spentityid'] = $spentityid;
$t->data['attributes'] = $filteredattributes;
$t->data['consenturl'] = SimpleSAML_Utilities::selfURLNoQuery();
......
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