diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index c1e3338bb2a..77a5ed7ba5a 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -580,7 +580,7 @@ class FormFile
'title' => $title,
'url' => $url
);
- $reshook=$hookmanager->executeHooks('showNodesList', $parameters, $object);
+ $reshook=$hookmanager->executeHooks('showFilesList', $parameters, $object);
if (isset($reshook) && $reshook != '') // 0:not deleted, 1:deleted, null or '' for bypass
{