diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 19f5e7de09b..4f1883ccda5 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2264,8 +2264,72 @@ class Form } } - // Show JQuery confirm box. Note that global var $useglobalvars is used inside this template - include(DOL_DOCUMENT_ROOT.'/core/tpl/ajax/formconfirm.tpl.php'); + // Show JQuery confirm box. Note that global var $useglobalvars is used inside this template + $formconfirm.= '
'; + + $formconfirm.= ''; } else { diff --git a/htdocs/core/tpl/ajax/formconfirm.tpl.php b/htdocs/core/tpl/ajax/formconfirm.tpl.php deleted file mode 100644 index 7f5bb51910e..00000000000 --- a/htdocs/core/tpl/ajax/formconfirm.tpl.php +++ /dev/null @@ -1,102 +0,0 @@ - - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see