mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
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()
|
public function listImportNames()
|
||||||
{
|
{
|
||||||
if ($this->hasBeenModified()
|
if ($this->gotImports()) {
|
||||||
&& $this->imports !== null
|
|
||||||
&& $this->imports()->hasBeenModified()
|
|
||||||
) {
|
|
||||||
return $this->imports()->listImportNames();
|
return $this->imports()->listImportNames();
|
||||||
} else {
|
} else {
|
||||||
return $this->templateTree()->listParentNamesFor($this);
|
return $this->templateTree()->listParentNamesFor($this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user