Migrate Laysense to unmodified LaySite 1.5.2

This commit is contained in:
2026-11-28 14:44:34 +08:00
parent e39439467d
commit b08008c9ca
134 changed files with 3485 additions and 754 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);