From bd940f48a9b1c6fb45aef4860d3f23b8094d5ba4 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 2 Dec 2020 23:38:17 +0100 Subject: [PATCH] page: editable meta tags without xml closure Match ckeditor output, just in case save doesn't reformat. --- article.inc.php | 2 +- page.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/article.inc.php b/article.inc.php index 6c3ca93..93bbe3b 100644 --- a/article.inc.php +++ b/article.inc.php @@ -17,7 +17,7 @@ function showdate($parts) class ArchiveArticle { public $raw, $title, $body; # file contents - public $meta = []; + public $meta = []; # head metadata properties function __construct($path) { diff --git a/page.php b/page.php index 75540b6..c5ade11 100644 --- a/page.php +++ b/page.php @@ -175,7 +175,7 @@ if (isset($Article->raw)) { # restore meta tags in static contents for editing foreach (array_reverse($Article->meta) as $metaprop => $val) { $Article->raw = sprintf( - ''."\n", + ''."\n", $metaprop, $val ) . $Article->raw; } -- 2.30.0