From 3c1f5e3427e3e45a11b772dfe24da2cef63f91f0 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 21 Jun 2021 18:38:46 +0200 Subject: Use function parseEntityContent --- admin/page/delete.php | 2 +- admin/post/delete.php | 2 +- admin/user/delete.php | 2 +- core/functions.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/page/delete.php b/admin/page/delete.php index 69ad242..e1c95f0 100644 --- a/admin/page/delete.php +++ b/admin/page/delete.php @@ -31,7 +31,7 @@ try { # Build document #=============================================================================== $FormTemplate = Template\Factory::build('page/form'); - $FormTemplate->set('HTML', $Page->getHTML()); + $FormTemplate->set('HTML', parseEntityContent($Page)); $FormTemplate->set('FORM', [ 'TYPE' => 'DELETE', 'INFO' => $messages ?? [], diff --git a/admin/post/delete.php b/admin/post/delete.php index 7d4ab10..94b60fc 100644 --- a/admin/post/delete.php +++ b/admin/post/delete.php @@ -31,7 +31,7 @@ try { # Build document #=============================================================================== $FormTemplate = Template\Factory::build('post/form'); - $FormTemplate->set('HTML', $Post->getHTML()); + $FormTemplate->set('HTML', parseEntityContent($Post)); $FormTemplate->set('FORM', [ 'TYPE' => 'DELETE', 'INFO' => $messages ?? [], diff --git a/admin/user/delete.php b/admin/user/delete.php index 5bc2aa5..6f0af6f 100644 --- a/admin/user/delete.php +++ b/admin/user/delete.php @@ -31,7 +31,7 @@ try { # Build document #=============================================================================== $FormTemplate = Template\Factory::build('user/form'); - $FormTemplate->set('HTML', $User->getHTML()); + $FormTemplate->set('HTML', parseEntityContent($User)); $FormTemplate->set('FORM', [ 'TYPE' => 'DELETE', 'INFO' => $messages ?? [], diff --git a/core/functions.php b/core/functions.php index 3a3dbdf..7157e03 100644 --- a/core/functions.php +++ b/core/functions.php @@ -99,7 +99,7 @@ function generateItemTemplateData(Item $Item): array { return $preparsed; }, 'HTML' => function() use($Item) { - return $Item->getHTML(); + return parseEntityContent($Item); } ] ]; -- cgit v1.2.3