From c45aace9b97154ee9fc0010748150a8279c61bec Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 5 Jun 2014 23:30:20 +0200 Subject: [PATCH] Add easy fix to solve pb of links for some modules. --- htdocs/core/class/html.formfile.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 0beba50ccbd..1eadc4f427a 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -554,9 +554,12 @@ class FormFile $out.= ""; + $documenturl = DOL_URL_ROOT.'/document.php'; + if (isset($conf->global->DOL_URL_ROOT_DOCUMENT_PHP)) $documenturl=$conf->global->DOL_URL_ROOT_DOCUMENT_PHP; + // Show file name with link to download $out.= ''; - $out.= '