add hook to custom directory into automatic file ECM

This commit is contained in:
Florian HENRY 2021-02-06 13:25:35 +01:00
parent 3b4f8c32f7
commit 377427da1d

View File

@ -1637,7 +1637,7 @@ class FormFile
'banque'))) { 'banque'))) {
preg_match('/(.*)\/[^\/]+$/', $relativefile, $reg); $ref = (isset($reg[1]) ? $reg[1] : ''); preg_match('/(.*)\/[^\/]+$/', $relativefile, $reg); $ref = (isset($reg[1]) ? $reg[1] : '');
} else { } else {
$parameters = array('modulepart'=>$modulepart,'fullname'=>$file['fullname']); $parameters = array('modulepart'=>$modulepart,'fileinfo'=>$file);
$reshook = $hookmanager->executeHooks('addSectionECMAuto', $parameters); $reshook = $hookmanager->executeHooks('addSectionECMAuto', $parameters);
if ($reshook > 0 && is_array($hookmanager->resArray) && count($hookmanager->resArray)>0) if ($reshook > 0 && is_array($hookmanager->resArray) && count($hookmanager->resArray)>0)
{ {