Add page publication history and reusable blocks
This commit is contained in:
@@ -19,7 +19,7 @@ final class SystemPage
|
||||
if (!isset(self::TYPES[$type]) || !is_string($slug) || $slug === '') {
|
||||
return null;
|
||||
}
|
||||
$page = $repo->page($slug);
|
||||
$page = $repo->publishedPage($slug);
|
||||
|
||||
return $page && $page['page_type'] === $type && $page['status'] === 'published' ? $page : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user