From: Mischa POSLAWSKY Date: Wed, 18 Mar 2020 16:28:59 +0000 (+0100) Subject: page: reenclose template contents in static container X-Git-Tag: v4.4~13 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/1b6e24cdaae9bf6bf6a990fe9227cb50f5d29d92 page: reenclose template contents in static container Fix editing of new pages since v4.2-24-ged38c6a767 (2020-02-04) [page: article method to find handler code]. --- diff --git a/page.php b/page.php index f4d6057..12e0690 100644 --- a/page.php +++ b/page.php @@ -175,11 +175,13 @@ if (isset($Article->raw)) { ) . $Article->raw; } } - $Article->raw = '
'."\n\n".$Article->raw."
\n\n"; } -elseif (!$Article->raw and $User and $User->admin("edit {$Article->link}")) { +elseif ($User and $User->admin("edit {$Article->link}")) { $Article->raw(file_exists("$Page/template.inc.html") ? "$Page/template.inc.html" : 'template.inc.html'); } +if (isset($Article->raw)) { + $Article->raw = '
'."\n\n".$Article->raw."
\n\n"; +} # output dynamic and/or static html