mirror of
https://github.com/flextype/flextype.git
synced 2025-08-17 10:30:46 +02:00
Content: visibility hidden for pages - added
This commit is contained in:
@@ -194,7 +194,7 @@ class Content
|
||||
$page = Content::processPage($file_path);
|
||||
|
||||
// Get 404 page if page is not published
|
||||
if (isset($page['visibility']) && $page['visibility'] === 'draft') {
|
||||
if (isset($page['visibility']) && ($page['visibility'] === 'draft' || $page['visibility'] === 'hidden')) {
|
||||
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