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()
|
||||
{
|
||||
if ($this->hasBeenModified()
|
||||
&& $this->imports !== null
|
||||
&& $this->imports()->hasBeenModified()
|
||||
) {
|
||||
if ($this->gotImports()) {
|
||||
return $this->imports()->listImportNames();
|
||||
} else {
|
||||
return $this->templateTree()->listParentNamesFor($this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user