also 404 for faq posts

This commit is contained in:
Alex Grintsvayg 2016-08-18 14:05:32 -04:00
parent 300b5192e4
commit a1f200de6c

View file

@ -102,9 +102,12 @@ class ContentActions extends Actions
} }
public static function executeFaqPost($relativeUri) public static function executeFaqPost($relativeUri)
{
try
{ {
$post = Post::load(ltrim($relativeUri, '/')); $post = Post::load(ltrim($relativeUri, '/'));
if (!$post) }
catch (PostNotFoundException $e)
{ {
return ['page/404', []]; return ['page/404', []];
} }