From 97cf3e87fa9fa892c79bac84f5f179bf5eedbdfc Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 27 Jun 2018 02:31:57 +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 4dd2dc25..df545c61 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['published']) && $page['published'] === false) { + if (isset($page['visibility']) && $page['visibility'] === 'visible') { if (Filesystem::fileExists($file_path = PATH['pages'] . '/404/page.html')) { $page = Content::processPage($file_path); Http::setResponseStatus(404);