1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 07:06:45 +02:00

Content: field 'published' changed to 'visibility'

This commit is contained in:
Awilum
2018-06-29 14:34:49 +03:00
parent 25d5d23278
commit b8fc75b332

View File

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