In FIleManager.inc.php file, the downloadByPath method is called when I download an issue file so the line if (HookRegistry::call(‘FileManager::downloadFile’, array(&$filePath, &$mediaType, &$inline, &$result, &$fileName))) return $result; is called and the hook as well.
In case I download an article, the process is different and there is no hook for FileManager::downloadFile in order to register and do the job I want.
In short when I download an issue I can register in the hook FileManager::downloadFile but when I download an article I cant.
In previous ojs versions I remember my plugin worked fine.
Is there something I can try? Is there a missing call for that hook in the new ojs version?
Thank you in advance