From efd855b186b8a69fe49e8e24c55c09905d9b9e96 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Tue, 16 Jul 2013 17:50:12 +0200
Subject: [PATCH] Can replace a tag with file into parameter to ouput into list
 of files.

---
 htdocs/core/class/html.formfile.class.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index ddc0979649b..4ec715e0d58 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -532,6 +532,7 @@ class FormFile
 						}
 						if ($morepicto)
 						{
+							$morepicto=preg_replace('/__FILENAMEURLENCODED__/',urlencode($relativepath),$morepicto);
                         	$out.=$morepicto;
 						}
                         $out.='</td>';
-- 
GitLab