diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-06-01 09:21:03 +0200 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-06-01 09:21:03 +0200 |
commit | fc1ab9bf606ed27e2565f2efedcbc3f8769d4f8f (patch) | |
tree | d24b8b7424eedaeb002921ba0a37367cd725fcdb /modules | |
parent | 7eaea62141690cb5b5a220f27abbb6a820f91847 (diff) | |
download | simplesamlphp-fc1ab9bf606ed27e2565f2efedcbc3f8769d4f8f.zip simplesamlphp-fc1ab9bf606ed27e2565f2efedcbc3f8769d4f8f.tar.gz simplesamlphp-fc1ab9bf606ed27e2565f2efedcbc3f8769d4f8f.tar.bz2 |
Reformat the no_cookie error page code.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/core/templates/no_cookie.tpl.php | 12 | ||||
-rw-r--r-- | 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 bec98bd..40337a6 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 c9d8a06..46e67a5 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(); |