From 8ea3807f4bdfd1c538b965fa3dfc5f1e5a9a9854 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sat, 9 Jul 2022 20:22:55 +0300 Subject: delete obsolete file --- handler/PostId.php | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 handler/PostId.php 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 @@ -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 -- cgit v1.2.3