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

Added description of sp to consent template and SSOService.php.

Use SPDESC as replacement string in dictionary.


git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@877 44740490-163a-0410-bde0-09ae8108e29a
parent 1b60121e
Branches
Tags
No related merge requests found
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
$this->includeLanguageFile('consent.php'); $this->includeLanguageFile('consent.php');
$this->includeInlineTranslation('spname', $this->data['sp_name']); $this->includeInlineTranslation('spname', $this->data['sp_name']);
$this->includeInlineTranslation('IDPNAME', $this->data['idp_name']); $this->includeInlineTranslation('IDPNAME', $this->data['idp_name']);
$this->includeInlineTranslation('SPDESC', $this->data['sp_description']);
?> ?>
<div id="content"> <div id="content">
<p><?php echo htmlspecialchars($this->t('consent_notice')); ?> <strong><?php echo htmlspecialchars($this->t('spname')); ?></strong>. <p><?php echo htmlspecialchars($this->t('consent_notice')); ?> <strong><?php echo htmlspecialchars($this->t('spname')); ?></strong>.
<?php echo htmlspecialchars($this->t('consent_accept', array('IDPNAME' => ''))) ?> <?php echo htmlspecialchars($this->t('consent_accept', array('IDPNAME' => '', 'SPDESC' => ''))) ?>
</p> </p>
<?php if ($this->data['sppp'] !== FALSE) { <?php if ($this->data['sppp'] !== FALSE) {
......
...@@ -331,6 +331,7 @@ if($needAuth && !$isPassive) { ...@@ -331,6 +331,7 @@ if($needAuth && !$isPassive) {
$t = new SimpleSAML_XHTML_Template($config, 'consent.php', 'attributes'); $t = new SimpleSAML_XHTML_Template($config, 'consent.php', 'attributes');
$t->data['header'] = 'Consent'; $t->data['header'] = 'Consent';
$t->data['sp_name'] = $sp_name; $t->data['sp_name'] = $sp_name;
$t->data['sp_description'] = (isset($spmetadata['description']) ? $spmetadata['description'] : "SP DESCRIPTION");
$t->data['idp_name'] = (isset($idpmetadata['name']) ? $idpmetadata['name'] : $idpentityid); $t->data['idp_name'] = (isset($idpmetadata['name']) ? $idpmetadata['name'] : $idpentityid);
$t->data['spentityid'] = $spentityid; $t->data['spentityid'] = $spentityid;
$t->data['spmetadata'] = $spmetadata; $t->data['spmetadata'] = $spmetadata;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment