1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-09 06:36:52 +02:00

Content: field published changed to visibility

This commit is contained in:
Awilum
2018-06-26 12:06:50 +03:00
parent 8bfb069a60
commit ddf1217509

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