Removed dead code. Allow to use attachment=0.

This commit is contained in:
Laurent Destailleur 2012-09-03 18:17:19 +02:00
parent ac02450200
commit 841586b050

View File

@ -78,7 +78,6 @@ else $type=dol_mimetype($original_file);
// Define attachment (attachment=true to force choice popup 'open'/'save as')
$attachment = true;
if (preg_match('/\.txt$/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 (! empty($conf->global->MAIN_DISABLE_FORCE_SAVEAS)) $attachment=false;