diff --git a/lam/templates/pdfedit/pdfdelete.php b/lam/templates/pdfedit/pdfdelete.php index 412cc1d6..7f544592 100644 --- a/lam/templates/pdfedit/pdfdelete.php +++ b/lam/templates/pdfedit/pdfdelete.php @@ -53,10 +53,10 @@ echo ("\n\n


\n"); if ($_POST['submit']) { // delete user profile if(!deletePDFStructureDefinition($_POST['type'],$_POST['delete'])) { - StatusMessage('ERROR', '', _('Unable to delete PDF structure!') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . substr($_POST['delete'],0,strlen($_POST['delete']) - 4)); + StatusMessage('ERROR', '', _('Unable to delete PDF structure!') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . $_POST['delete']); } else { - StatusMessage('INFO', '', _('Deleted PDF structure:') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . substr($_POST['delete'],0,strlen($_POST['delete']) - 4)); + StatusMessage('INFO', '', _('Deleted PDF structure:') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . $_POST['delete']); } echo ("
" . _("Back to PDF Editor") . ""); echo ("\n"); @@ -75,7 +75,7 @@ if ($_POST['abort']) { $type = $_GET['type']; if (($type == "user") || ($type == "host") || ($type == "group")) { echo ("

" . _("Do you really want to delete this PDF structure?") . " "); - echo (_('Scope') . ': ' . $_GET['type'] . ' ' . _('Name') . ': ' . substr($_GET['delete'],0,strlen($_GET['delete']) - 4) . "

\n"); + echo (_('Scope') . ': ' . $_GET['type'] . ' ' . _('Name') . ': ' . $_GET['delete'] . "

\n"); echo ("
\n"); echo ("

\n"); echo ("\n");