diff --git a/htdocs/docs/index.php b/htdocs/docs/index.php
index 7c376ccef81..eacde350700 100644
--- a/htdocs/docs/index.php
+++ b/htdocs/docs/index.php
@@ -17,11 +17,11 @@
*/
/**
- \file htdocs/docs/index.php
- \ingroup document
- \brief Page d'accueil module document
- \version $Id$
-*/
+ * \file htdocs/docs/index.php
+ * \ingroup document
+ * \brief Page d'accueil module document
+ * \version $Id$
+ */
require("./pre.inc.php");
@@ -57,7 +57,7 @@ if ($resql)
print '
';
$loc = get_exdir($obj->rowid).$obj->rowid.".pdf";
$file = stripslashes($obj->name);
- echo ''.$file.' | ';
+ echo ''.$file.'';
print ''.dol_print_date($obj->date_generation,'dayhour').' | ';
print "\n";
diff --git a/htdocs/document.php b/htdocs/document.php
index b5d91d6df64..dbb30490d4b 100644
--- a/htdocs/document.php
+++ b/htdocs/document.php
@@ -102,6 +102,7 @@ if (eregi('\.tiff$',$original_file)) { $attachment = true; }
// Calendar
if (eregi('\.vcs$',$original_file)) { $attachment = true; }
if (eregi('\.ics$',$original_file)) { $attachment = true; }
+if ($_REQUEST["attachment"]) { $attachment = true; }
if (! empty($conf->global->MAIN_DISABLE_FORCE_SAVEAS)) $attachment=false;
//print "XX".$attachment;exit;
diff --git a/htdocs/html.formfile.class.php b/htdocs/html.formfile.class.php
index 3992345aaf9..59db9b1f840 100644
--- a/htdocs/html.formfile.class.php
+++ b/htdocs/html.formfile.class.php
@@ -414,7 +414,7 @@ class FormFile
* \param object Object on which document is linked to
* \param modulepart Value for modulepart used by download wrapper
* \param param Parameters on sort links
- * \param forcedownload Mime type is forced to 'application/binary' to have a download
+ * \param forcedownload Force to open dialog box "Save As" when clicking on file
* \param relativepath Relative path of docs (autodefined if not provided)
* \param permtodelete Permission to delete
* \param useinecm Change output for use in ecm module
@@ -459,7 +459,7 @@ class FormFile
print "";
//print "XX".$file['name']; //$file['name'] must be utf8
print '';
print img_mime($file['name'],$file['name'].' ('.dol_print_size($file['size'],0,0).')').' ';
print dol_trunc($file['name'],$maxlength,'middle');
diff --git a/htdocs/societe/document.php b/htdocs/societe/document.php
index 7633b9763c3..18b99892d2b 100644
--- a/htdocs/societe/document.php
+++ b/htdocs/societe/document.php
@@ -237,7 +237,7 @@ if ($socid > 0)
$var=!$var;
print "| ";
$loc = "courrier/".get_exdir($socid);
- echo ''.$file.'';
+ echo ''.$file.'';
print " | \n";
print ''.dol_print_size(dol_filesize($courrier_dir."/".$file)).' | ';
|