Prepare LaySite 1.5.1 page routing and template updates

This commit is contained in:
2026-11-28 03:07:14 +08:00
parent 50fb30ff3b
commit 474cb766be
41 changed files with 354 additions and 146 deletions
+1 -1
View File
@@ -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);