From 557e456d81d8402d0254e2e43cbfec932c907d6a Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sat, 11 Aug 2018 18:09:17 +0200 Subject: [PATCH] authorize: use camelCase variable --- modules/authorize/templates/authorize_403.php | 4 ++-- modules/authorize/templates/authorize_403.twig | 4 ++-- modules/authorize/www/authorize_403.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/authorize/templates/authorize_403.php b/modules/authorize/templates/authorize_403.php index ee16d96a7..a3162d0a1 100644 --- a/modules/authorize/templates/authorize_403.php +++ b/modules/authorize/templates/authorize_403.php @@ -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 } ?> diff --git a/modules/authorize/templates/authorize_403.twig b/modules/authorize/templates/authorize_403.twig index 1a60813dc..3f6402e92 100644 --- a/modules/authorize/templates/authorize_403.twig +++ b/modules/authorize/templates/authorize_403.twig @@ -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%} diff --git a/modules/authorize/www/authorize_403.php b/modules/authorize/www/authorize_403.php index 158fe11a9..42f504f9f 100644 --- a/modules/authorize/www/authorize_403.php +++ b/modules/authorize/www/authorize_403.php @@ -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(); -- GitLab