From b8fc75b332e6e5bc164c2a31b83001d272f20b24 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 29 Jun 2018 14:34:49 +0300 Subject: [PATCH] Content: field 'published' changed to 'visibility' --- flextype/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/Content.php b/flextype/Content.php index df545c61..f69bd433 100755 --- a/flextype/Content.php +++ b/flextype/Content.php @@ -183,7 +183,7 @@ class Content $page = Content::processPage($file_path); // Get 404 page if page is not published - if (isset($page['visibility']) && $page['visibility'] === 'visible') { + if (isset($page['visibility']) && $page['visibility'] === 'draft') { if (Filesystem::fileExists($file_path = PATH['pages'] . '/404/page.html')) { $page = Content::processPage($file_path); Http::setResponseStatus(404);