summaryrefslogtreecommitdiff
path: root/handler
diff options
context:
space:
mode:
Diffstat (limited to 'handler')
-rw-r--r--handler/PostId.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/handler/PostId.php b/handler/PostId.php
deleted file mode 100644
index ec9f750..0000000
--- a/handler/PostId.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
-namespace handler;
-
-class PostId extends \RequestHandler {
-
- public function get(): \Response {
- list($post_id) = $this->input('i:id');
-
- $post = posts_getPost($post_id);
- if (!$post || (!$post->visible && !\admin::isAdmin()))
- throw new \NotFoundException();
-
- if ($post->shortName != '')
- return new \RedirectResponse($post->getUrl());
-
- throw new \NotFoundException();
- }
-
-} \ No newline at end of file