Skip to content
Snippets Groups Projects
Commit 557e456d authored by Tim van Dijen's avatar Tim van Dijen
Browse files

authorize: use camelCase variable

parent 75543cd3
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,9 @@ $this->includeAtTemplateBase('includes/header.php');
<h1><?php echo $this->data['403_header']; ?></h1>
<p><?php echo $this->data['403_text']; ?></p>
<?php
if (isset($this->data['LogoutURL'])) {
if (isset($this->data['logoutURL'])) {
?>
<p><a href="<?php echo htmlspecialchars($this->data['LogoutURL']); ?>"><?php echo $this->t('{status:logout}'); ?></a></p>
<p><a href="<?php echo htmlspecialchars($this->data['logoutURL']); ?>"><?php echo $this->t('{status:logout}'); ?></a></p>
<?php
}
?>
......
......@@ -3,9 +3,9 @@
{% block content %}
<h1>{{ '{authorize:Authorize:403_header}'|trans }}</h1>
<p>{{ '{authorize:Authorize:403_text}'|trans }}</p>
{% if LogoutURL is defined %}
{% if logoutURL is defined %}
<p>
<a href="{{ LogoutURL|escape('html') }}">{{ '{status:logout}'|trans }}</a>
<a href="{{ logoutURL|escape('html') }}">{{ '{status:logout}'|trans }}</a>
</p>
{% endif %}
{% endblock%}
......@@ -13,7 +13,7 @@ $state = \SimpleSAML\Auth\State::loadState($_REQUEST['StateId'], 'authorize:Auth
$globalConfig = \SimpleSAML\Configuration::getInstance();
$t = new \SimpleSAML\XHTML\Template($globalConfig, 'authorize:authorize_403.php');
if (isset($state['Source']['auth'])) {
$t->data['LogoutURL'] = \SimpleSAML\Module::getModuleURL('core/authenticate.php', array('as' => $state['Source']['auth']))."&logout";
$t->data['logoutURL'] = \SimpleSAML\Module::getModuleURL('core/authenticate.php', array('as' => $state['Source']['auth']))."&logout";
}
header('HTTP/1.0 403 Forbidden');
$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