diff --git a/library/Businessprocess/Node.php b/library/Businessprocess/Node.php index e8109ea..51f37cb 100644 --- a/library/Businessprocess/Node.php +++ b/library/Businessprocess/Node.php @@ -334,13 +334,6 @@ abstract class Node return ' '; } - // TODO: Why isn't this abstract? - // abstract public function toLegacyConfigString(); - public function toLegacyConfigString(& $rendered = array()) - { - return ''; - } - public function getName() { return $this->name; diff --git a/library/Businessprocess/Storage/LegacyStorage.php b/library/Businessprocess/Storage/LegacyStorage.php index affa341..e7c0a3a 100644 --- a/library/Businessprocess/Storage/LegacyStorage.php +++ b/library/Businessprocess/Storage/LegacyStorage.php @@ -191,7 +191,7 @@ class LegacyStorage extends Storage $rendered = array(); $conf = ''; - foreach ($bp->getChildren() as $child) { + foreach ($bp->getRootNodes() as $child) { $conf .= $child->toLegacyConfigString($rendered); $rendered[$child->getName()] = true; }