Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update html.formfile.class.php
  • Loading branch information
eldy committed Feb 27, 2019
1 parent d1716ba commit f2dc687
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion htdocs/core/class/html.formfile.class.php
Expand Up @@ -176,7 +176,13 @@ function form_attach_new_file($url, $title = '', $addcancel = 0, $sectionid = 0,
if ($savingdocmask)
{
//add a global variable for disable the auto renaming on upload
if($conf->global->MAIN_DOC_UPLOAD_NOT_RENAME_BY_DEFAULT==1){$rename='';}else{$rename='checked';}
if (! empty($conf->global->MAIN_DOC_UPLOAD_NOT_RENAME_BY_DEFAULT))
{
$rename='';
}
else {
$rename='checked';
}

$out .= '<tr>';
if (! empty($options)) $out .= '<td>'.$options.'</td>';
Expand Down

0 comments on commit f2dc687

Please sign in to comment.