From e1c009fce4dcc338cdee4dde4d2b6f96bd98d9bc Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 16 Aug 2012 15:46:36 +0200 Subject: [PATCH] Fix: regression, formconfirm template can't use with variable content --- htdocs/core/class/html.form.class.php | 68 ++++++++++++++- htdocs/core/tpl/ajax/formconfirm.tpl.php | 102 ----------------------- 2 files changed, 66 insertions(+), 104 deletions(-) delete mode 100644 htdocs/core/tpl/ajax/formconfirm.tpl.php 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 . - * - */ -?> - - - - - \ No newline at end of file