diff options
Diffstat (limited to 'templates/part.folderlist.php')
-rw-r--r-- | templates/part.folderlist.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/part.folderlist.php b/templates/part.folderlist.php index 11ed53bcb..09b5f8e64 100644 --- a/templates/part.folderlist.php +++ b/templates/part.folderlist.php @@ -1,13 +1,13 @@ <?php - function print_folder(OCA\News\Folder $folder, $depth){ - echo '<li style="margin-left:' . 10*$depth . 'px;" class="menuItem" onclick="News.DropDownMenu.selectItem(this, ' . $folder->getId() . ')">' . $folder->getName() . '</li>'; - $children = $folder->getChildren(); - foreach($children as $child) { - if ($child instanceOf OCA\News\Folder){ - print_folder($child, $depth+1); - } + function print_folder_list($folderlist, $depth) { + foreach($folderlist as $folder) { + echo '<li style="margin-left:' . 10*$depth . 'px;" class="menuItem" onclick="News.DropDownMenu.selectItem(this, ' . $folder->getId() . ')">' . $folder->getName() . '</li>'; + $children = $folder->getChildren(); + print_folder_list($children, $depth+1); } } - print_folder($_['allfeeds'], 0); + + + print_folder_list($_['folderforest'], 0); ?>
\ No newline at end of file |