From 841586b0500d9df0b26d53b95bc0815631a50ec9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 3 Sep 2012 18:17:19 +0200 Subject: [PATCH] Removed dead code. Allow to use attachment=0. --- htdocs/document.php | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/document.php b/htdocs/document.php index c4ddba8cca4..0fa3f3d4d8f 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -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;