Node: return myself in every path

fixes #96
This commit is contained in:
Thomas Gelf 2017-01-27 15:01:48 +01:00
parent 0c395cc005
commit 5cbd46b6e3
2 changed files with 3 additions and 2 deletions

View file

@ -42,6 +42,7 @@ class NodeController extends Controller
$config->applySimulation($simulation);
foreach ($config->getNode($name)->getPaths() as $path) {
array_pop($path);
$node = array_pop($path);
$renderer = new TileRenderer($config, $config->getNode($node));
$renderer->setUrl(

View file

@ -331,11 +331,11 @@ abstract class Node
$paths = array();
foreach ($this->parents as $parent) {
foreach ($parent->getPaths() as $path) {
// $path[] = $this->getName();
$path[] = $this->getName();
$paths[] = $path;
}
}
// TODO! -> for delete etc
return $paths;
}