Refactor to not use ->value in the tree

This commit is contained in:
Stéphane Goetz
2015-07-18 14:37:18 +02:00
parent 9cdc9815ea
commit 3235c49acd
11 changed files with 55 additions and 45 deletions

View File

@ -54,7 +54,7 @@ class Generator
if ($base_url !== '' && empty($params['entry_page'])) {
$params['entry_page'] = $tree->getFirstPage();
}
foreach ($tree->value as $key => $node) {
foreach ($tree->getEntries() as $key => $node) {
if ($node instanceof Directory) {
$new_output_dir = $output_dir . DS . $key;
mkdir($new_output_dir);