forked from laysense/laysite
Prepare LaySite 1.5.1 page routing and template updates
This commit is contained in:
@@ -16,7 +16,7 @@ final class SystemPage
|
||||
|
||||
public static function published(Repository $repo, string $type, mixed $slug): ?array
|
||||
{
|
||||
if (!self::slugMatches($type, $slug)) {
|
||||
if (!isset(self::TYPES[$type]) || !is_string($slug) || $slug === '') {
|
||||
return null;
|
||||
}
|
||||
$page = $repo->page($slug);
|
||||
|
||||
Reference in New Issue
Block a user