mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
pass correct depth in callback of SeedDMS_FolderTree
This commit is contained in:
parent
b5be1c8490
commit
d8f79b846e
|
@ -1129,7 +1129,7 @@ class SeedDMS_FolderTree { /* {{{ */
|
|||
$iter = new \SeedDMS\Core\RecursiveFolderIterator($folder);
|
||||
$iter2 = new RecursiveIteratorIterator($iter, RecursiveIteratorIterator::SELF_FIRST);
|
||||
foreach($iter2 as $ff) {
|
||||
call_user_func($callback, $ff, $iter2->getDepth());
|
||||
call_user_func($callback, $ff, $iter2->getDepth()+1);
|
||||
// echo $ff->getID().': '.$ff->getFolderPathPlain().'-'.$ff->getName()."<br />";
|
||||
}
|
||||
} /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user