mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
Node: remove toLegacyConfigString
This commit is contained in:
parent
791a0286b8
commit
0aeb3183f4
2 changed files with 1 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue