diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-21 18:38:46 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-21 18:38:46 +0200 |
commit | 3c1f5e3427e3e45a11b772dfe24da2cef63f91f0 (patch) | |
tree | 9a8ff8a4a7762aad934292caf0c8e66ab782d8f6 | |
parent | bf57f3dcba5864b63882c273d25403c28637eeab (diff) | |
download | blog-3c1f5e3427e3e45a11b772dfe24da2cef63f91f0.tar.gz blog-3c1f5e3427e3e45a11b772dfe24da2cef63f91f0.tar.xz blog-3c1f5e3427e3e45a11b772dfe24da2cef63f91f0.zip |
Use function parseEntityContent
-rw-r--r-- | admin/page/delete.php | 2 | ||||
-rw-r--r-- | admin/post/delete.php | 2 | ||||
-rw-r--r-- | admin/user/delete.php | 2 | ||||
-rw-r--r-- | 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); } ] ]; |