mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
parent
a8db367718
commit
618b2647c6
@ -68,7 +68,9 @@ trait DeployFormsBug7530
|
|||||||
$version = $this->api->getVersion();
|
$version = $this->api->getVersion();
|
||||||
if ($version === null) {
|
if ($version === null) {
|
||||||
throw new \RuntimeException($this->translate('Unable to detect your Icinga 2 Core version'));
|
throw new \RuntimeException($this->translate('Unable to detect your Icinga 2 Core version'));
|
||||||
} elseif ($version === '2.11.0') {
|
} elseif (\version_compare($version, '2.11.0', '>=')
|
||||||
|
&& \version_compare($version, '2.12.0', '<')
|
||||||
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user