Overview
Comment:Fix empty attachments list
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: 458b8a0d7ae55bc9760e06e0ea5aaa3ec1c5aa44b1dec3ef569429f77287a3db
User & Date: bohwaz on 2023-06-01 00:02:08
Other Links: branch diff | manifest | tags
Context
2023-06-01
12:18
Allow fee formulas to query service tables check-in: 877dfc4607 user: bohwaz tags: dev
00:02
Fix empty attachments list check-in: 458b8a0d7a user: bohwaz tags: dev
2023-05-31
23:47
Update static HTML doc check-in: 2cb6920846 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Entities/Web/Page.php from [ba91867e43] to [6248ab559a].

63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
		self::TYPE_PAGE => 'article.html',
		self::TYPE_CATEGORY => 'category.html',
	];

	const DUPLICATE_URI_ERROR = 42;

	protected ?File $_file = null;
	protected array $_attachments = [];
	protected array $_tagged_attachments = [];
	protected ?string $_html = null;
	protected ?\DateTime $_html_modified = null;

	static public function create(int $type, ?string $parent, string $title, string $status = self::STATUS_ONLINE): self
	{
		$page = new self;
		$data = compact('type', 'parent', 'title', 'status');







|
|







63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
		self::TYPE_PAGE => 'article.html',
		self::TYPE_CATEGORY => 'category.html',
	];

	const DUPLICATE_URI_ERROR = 42;

	protected ?File $_file = null;
	protected ?array $_attachments = null;
	protected ?array $_tagged_attachments = null;
	protected ?string $_html = null;
	protected ?\DateTime $_html_modified = null;

	static public function create(int $type, ?string $parent, string $title, string $status = self::STATUS_ONLINE): self
	{
		$page = new self;
		$data = compact('type', 'parent', 'title', 'status');