summaryrefslogtreecommitdiff
path: root/skin/error.skin.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2024-02-01 00:18:42 +0300
committerEvgeny Zinoviev <me@ch1p.io>2024-02-01 00:18:42 +0300
commit9dd2345ecfff4f7d65ec106a8aee8d866c972585 (patch)
treef7330d1759b253cf9bc0e90bdade839aad3d1e48 /skin/error.skin.php
parent696f4baeedab7710fd6aad474b5fe34f98093ca8 (diff)
use .phps extension for skin files
Diffstat (limited to 'skin/error.skin.php')
-rw-r--r--skin/error.skin.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/skin/error.skin.php b/skin/error.skin.php
deleted file mode 100644
index 8f7e4c7..0000000
--- a/skin/error.skin.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-namespace skin\error;
-
-use Stringable;
-
-function http_error($ctx,
- int $code,
- string|Stringable $title,
- string|Stringable|null $message = null) {
-return <<<HTML
-<html>
- <head><title>$code $title</title></head>
- <body>
- <center><h1>$code $title</h1></center>
- {$ctx->if_true($message,
- '<hr><p align="center">'.$message.'</p>'
- )}
- </body>
-</html>
-HTML;
-
-} \ No newline at end of file