IcingaObject: ask imports for name list...
...when we already have it available
This commit is contained in:
parent
396d8399ee
commit
2f1d963c1c
|
@ -2633,10 +2633,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
|
||||
public function listImportNames()
|
||||
{
|
||||
if ($this->hasBeenModified()
|
||||
&& $this->imports !== null
|
||||
&& $this->imports()->hasBeenModified()
|
||||
) {
|
||||
if ($this->gotImports()) {
|
||||
return $this->imports()->listImportNames();
|
||||
} else {
|
||||
return $this->templateTree()->listParentNamesFor($this);
|
||||
|
|
Loading…
Reference in New Issue