From fc1ab9bf606ed27e2565f2efedcbc3f8769d4f8f Mon Sep 17 00:00:00 2001 From: Jaime Perez Crespo <jaime.perez@uninett.no> Date: Wed, 1 Jun 2016 09:21:03 +0200 Subject: [PATCH] Reformat the no_cookie error page code. --- modules/core/templates/no_cookie.tpl.php | 12 ++++++------ modules/core/www/no_cookie.php | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/core/templates/no_cookie.tpl.php b/modules/core/templates/no_cookie.tpl.php index bec98bdee..40337a6d7 100644 --- a/modules/core/templates/no_cookie.tpl.php +++ b/modules/core/templates/no_cookie.tpl.php @@ -10,13 +10,13 @@ $retry = htmlspecialchars($this->t('{core:no_cookie:retry}')); $this->data['header'] = $header; $this->includeAtTemplateBase('includes/header.php'); -echo('<h2>' . $header . '</h2>'); -echo('<p>' . $description . '</p>'); +echo('<h2>'.$header.'</h2>'); +echo('<p>'.$description.'</p>'); -if ($retryURL !== NULL) { - echo('<ul>'); - echo('<li><a href="' . htmlspecialchars($retryURL) . '" id="retry">' . $retry . '</a></li>'); - echo('</ul>'); +if ($retryURL !== null) { + echo('<ul>'); + echo('<li><a href="'.htmlspecialchars($retryURL).'" id="retry">'.$retry.'</a></li>'); + echo('</ul>'); } $this->includeAtTemplateBase('includes/footer.php'); diff --git a/modules/core/www/no_cookie.php b/modules/core/www/no_cookie.php index c9d8a06c5..46e67a579 100644 --- a/modules/core/www/no_cookie.php +++ b/modules/core/www/no_cookie.php @@ -1,10 +1,10 @@ <?php if (isset($_REQUEST['retryURL'])) { - $retryURL = (string)$_REQUEST['retryURL']; - $retryURL = \SimpleSAML\Utils\HTTP::checkURLAllowed($retryURL); + $retryURL = (string) $_REQUEST['retryURL']; + $retryURL = \SimpleSAML\Utils\HTTP::checkURLAllowed($retryURL); } else { - $retryURL = NULL; + $retryURL = null; } $globalConfig = SimpleSAML_Configuration::getInstance(); -- GitLab