delete obsolete file

This commit is contained in:
Evgeny Zinoviev 2022-07-09 20:22:55 +03:00
parent 60f62b2ae4
commit 8ea3807f4b

View File

@ -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();
}
}