aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/page/delete.php2
-rw-r--r--admin/post/delete.php2
-rw-r--r--admin/user/delete.php2
-rw-r--r--core/functions.php2
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);
}
]
];