Skip to content

Commit

Permalink
Fix: getDirList is ambiguous, this method can return dir list or files
Browse files Browse the repository at this point in the history
list. Method is renamed to "getNodesList"
  • Loading branch information
hregis committed Sep 7, 2012
1 parent b6f090e commit 171f25d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/files.lib.php
Expand Up @@ -83,7 +83,7 @@ function dol_dir_list($path, $types="all", $recursive=0, $filter="", $excludefil
'loaddate' => $loaddate,
'loadsize' => $loadsize
);
$reshook=$hookmanager->executeHooks('getDirList', $parameters);
$reshook=$hookmanager->executeHooks('getNodesList', $parameters);

// $reshook may contain returns stacked by other modules
// $reshook is always empty with an array for can not lose returns stacked with other modules
Expand Down

0 comments on commit 171f25d

Please sign in to comment.