Removed dead code. Allow to use attachment=0.
This commit is contained in:
parent
ac02450200
commit
841586b050
@ -78,7 +78,6 @@ else $type=dol_mimetype($original_file);
|
|||||||
|
|
||||||
// Define attachment (attachment=true to force choice popup 'open'/'save as')
|
// Define attachment (attachment=true to force choice popup 'open'/'save as')
|
||||||
$attachment = true;
|
$attachment = true;
|
||||||
if (preg_match('/\.txt$/i',$original_file)) $attachment = false;
|
|
||||||
if (preg_match('/\.(html|htm)$/i',$original_file)) $attachment = false;
|
if (preg_match('/\.(html|htm)$/i',$original_file)) $attachment = false;
|
||||||
if (isset($_GET["attachment"])) $attachment = GETPOST("attachment")?true:false;
|
if (isset($_GET["attachment"])) $attachment = GETPOST("attachment")?true:false;
|
||||||
if (! empty($conf->global->MAIN_DISABLE_FORCE_SAVEAS)) $attachment=false;
|
if (! empty($conf->global->MAIN_DISABLE_FORCE_SAVEAS)) $attachment=false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user