diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php index 3e1c6892bbd..caeeb9c2976 100644 --- a/htdocs/core/lib/files.lib.php +++ b/htdocs/core/lib/files.lib.php @@ -3321,30 +3321,32 @@ function getFilesUpdated(&$file_list, SimpleXMLElement $dir, $path = '', $pathre * Function to manage the drag and drop file. * We use global variable $object * - * @return string Js script to display + * @param string $htmlname The id of the component where we need to drag and drop + * @return string Js script to display */ -function dragAndDropFileUpload() +function dragAndDropFileUpload($htmlname) { - global $object; - //TODO: Find a way to display text over div - $out = "