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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user