TileRenderer: show unbound nodes only at root level

This commit is contained in:
Thomas Gelf 2017-01-03 11:30:03 +01:00
parent 8770ff05ce
commit 549ec814ab

View file

@ -36,10 +36,12 @@ class TileRenderer extends Renderer
$this->add(new NodeTile($this, $name, $node, $path));
}
$unbound = $this->createUnboundParent($bp);
if ($unbound->hasChildren()) {
$name = $unbound->getAlias();
$this->add($this->add(new NodeTile($this, $name, $unbound)));
if ($this->wantsRootNodes()) {
$unbound = $this->createUnboundParent($bp);
if ($unbound->hasChildren()) {
$name = $unbound->getAlias();
$this->add(new NodeTile($this, $name, $unbound));
}
}
if (! $this->isLocked()) {