From 0aeb3183f44089ad852cb0373aec5d7306e949de Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 9 Dec 2016 14:11:56 +0100 Subject: [PATCH] Node: remove toLegacyConfigString --- library/Businessprocess/Node.php | 7 ------- library/Businessprocess/Storage/LegacyStorage.php | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) 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; }