Removed not used var $useglobalvars

This commit is contained in:
Laurent Destailleur 2020-05-27 11:38:28 +02:00
parent 479e8ceceb
commit 0b48ffe3cd
2 changed files with 2 additions and 3 deletions

View File

@ -355,7 +355,7 @@ if ($useajax || $action == 'delete')
$section_id = $section;
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
$useglobalvars = 1;
$form = new Form($db);
$formquestion['urlfile'] = array('type'=>'hidden', 'value'=>$urlfile, 'name'=>'urlfile'); // We must always put field, even if empty because it is filled by javascript later
$formquestion['section'] = array('type'=>'hidden', 'value'=>$section, 'name'=>'section'); // We must always put field, even if empty because it is filled by javascript later

View File

@ -4207,7 +4207,6 @@ class Form
public function formconfirm($page, $title, $question, $action, $formquestion = '', $selectedchoice = '', $useajax = 0, $height = 0, $width = 500, $disableformtag = 0)
{
global $langs, $conf;
global $useglobalvars;
$more = '<!-- formconfirm -->';
$formconfirm = '';
@ -4355,7 +4354,7 @@ class Form
if (isset($input['inputko']) && $input['inputko'] == 1) array_push($inputko, $input['name']);
}
}
// Show JQuery confirm box. Note that global var $useglobalvars is used inside this template
// Show JQuery confirm box.
$formconfirm .= '<div id="'.$dialogconfirm.'" title="'.dol_escape_htmltag($title).'" style="display: none;">';
if (!empty($formquestion['text'])) {
$formconfirm .= '<div class="confirmtext">'.$formquestion['text'].'</div>'."\n";