mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Clean code
This commit is contained in:
parent
52646ee9f5
commit
f7e8725406
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user