Skip to content
Snippets Groups Projects
Commit ca7d0494 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Status templates now accepts logout link to be null, when logout is not...

Status templates now accepts logout link to be null, when logout is not supported. used by diagnostics page and shibboleth example

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@423 44740490-163a-0410-bde0-09ae8108e29a
parent 240fc375
No related branches found
No related tags found
No related merge requests found
......@@ -36,9 +36,12 @@
?>
</table>
<?php if (isset($this->data['logout'])) { ?>
<h2>Logout</h2>
<p><?php echo $data['logout']; ?></p>
<p><?php echo $this->data['logout']; ?></p>
<?php } ?>
<h2>About simpleSAMLphp</h2>
<p>Hey! This simpleSAMLphp thing is pretty cool, where can I read more about it?
......
......@@ -47,7 +47,7 @@ $et->data['header'] = 'SimpleSAMLphp Diagnostics';
$et->data['remaining'] = 'na';
$et->data['attributes'] = $attributes;
$et->data['valid'] = 'na';
$et->data['logout'] = '';
$et->data['logout'] = null;
$et->show();
......
......@@ -50,7 +50,7 @@ $t = new SimpleSAML_XHTML_Template($config, 'status.php');
$t->data['header'] = 'Shibboleth demo';
$t->data['remaining'] = $session->remainingTime();
$t->data['attributes'] = $session->getAttributes();
$t->data['logout'] = 'Shibboleth logout not implemented yet.';
$t->data['logout'] = null;
$et->data['icon'] = 'bino.png';
$t->show();
......
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