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

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