Skip to content
Snippets Groups Projects
Commit fc28a048 authored by Anders Lund's avatar Anders Lund
Browse files

Small modification to not show info about purpose when no purpose is given.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1184 44740490-163a-0410-bde0-09ae8108e29a
parent 7b9df5f0
No related branches found
No related tags found
Loading
...@@ -46,7 +46,6 @@ if (array_key_exists('name', $this->data['dstMetadata'])) { ...@@ -46,7 +46,6 @@ if (array_key_exists('name', $this->data['dstMetadata'])) {
$dstName = $this->data['dstMetadata']['entityid']; $dstName = $this->data['dstMetadata']['entityid'];
} }
$spPurpose = 'unspecified';
if (array_key_exists('descr_purpose', $this->data['dstMetadata'])) { if (array_key_exists('descr_purpose', $this->data['dstMetadata'])) {
$spPurpose = $this->data['dstMetadata']['descr_purpose']; $spPurpose = $this->data['dstMetadata']['descr_purpose'];
if (is_array($spPurpose)) { if (is_array($spPurpose)) {
...@@ -99,11 +98,16 @@ $this->includeAtTemplateBase('includes/header.php'); ...@@ -99,11 +98,16 @@ $this->includeAtTemplateBase('includes/header.php');
?> ?>
<p> <p>
<?php echo $this->t('{consent:consent_accept}', array( <?php
'IDPNAME' => $srcName, echo $this->t('{consent:consent_notice}', array( 'SPNAME' => $dstName ));
'SPNAME' => $dstName, if ($spPurpose) echo '</p><p>' . $this->t('{consent:consent_purpose}', array( 'SPNAME' => $dstName, 'SPDESC' => $spPurpose ));
'SPDESC' => $spPurpose, ?>
)) ?> </p>
<p>
<?php
echo $this->t('{consent:consent_accept}', array( 'SPNAME' => $dstName, 'IDPNAME' => $srcName ));
?>
</p> </p>
<p style="margin: 1em"> <p style="margin: 1em">
......
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