pass correct depth in callback of SeedDMS_FolderTree

This commit is contained in:
Uwe Steinmann 2023-02-23 07:17:17 +01:00
parent b5be1c8490
commit d8f79b846e

View File

@ -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 />";
}
} /* }}} */