1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-09 14:46:53 +02:00

Content: field 'published' changed to 'visibility'

This commit is contained in:
Awilum
2018-06-27 02:31:57 +03:00
parent d0efe1400d
commit 97cf3e87fa

View File

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