diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-09 20:22:55 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-09 20:22:55 +0300 |
commit | 8ea3807f4bdfd1c538b965fa3dfc5f1e5a9a9854 (patch) | |
tree | 4d041295ba59c578c8b8e5763483f85e4c375cc8 | |
parent | 60f62b2ae411e1e3ba3ed4e09b7cd70e41c36265 (diff) |
delete obsolete file
-rw-r--r-- | handler/PostId.php | 20 |
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 |