Clean code

This commit is contained in:
Laurent Destailleur 2024-02-22 00:12:33 +01:00
parent 52646ee9f5
commit f7e8725406

View File

@ -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) {