diff --git a/htdocs/document.php b/htdocs/document.php index 532b1a53b52..87b8828a4ad 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -206,9 +206,6 @@ $original_file = str_replace('../', '/', $original_file); $original_file = str_replace('..\\', '/', $original_file); -// Find the subdirectory name as the reference -//$refname = basename(dirname($original_file)."/"); - // Security check if (empty($modulepart)) { accessforbidden('Bad value for parameter modulepart'); @@ -282,7 +279,7 @@ if (!is_object($hookmanager)) { } $hookmanager->initHooks(array('document')); $parameters = array('ecmfile' => $ecmfile, 'modulepart' => $modulepart, 'original_file' => $original_file, - 'entity' => $entity, 'refname' => '', 'fullpath_original_file' => $fullpath_original_file, + 'entity' => $entity, 'fullpath_original_file' => $fullpath_original_file, 'filename' => $filename, 'fullpath_original_file_osencoded' => $fullpath_original_file_osencoded); $reshook = $hookmanager->executeHooks('downloadDocument', $parameters); // Note that $action and $object may have been if ($reshook < 0) {