mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
6627b5ae6e
commit
3f4110d33d
@ -480,9 +480,9 @@ abstract class MonitoredObject
|
|||||||
public static function fromParams(UrlParams $params)
|
public static function fromParams(UrlParams $params)
|
||||||
{
|
{
|
||||||
if ($params->has('service') && $params->has('host')) {
|
if ($params->has('service') && $params->has('host')) {
|
||||||
return new Service(MonitoringBackend::createBackend(), $params->get('host'), $params->get('service'));
|
return new Service(MonitoringBackend::instance(), $params->get('host'), $params->get('service'));
|
||||||
} elseif ($params->has('host')) {
|
} elseif ($params->has('host')) {
|
||||||
return new Host(MonitoringBackend::createBackend(), $params->get('host'));
|
return new Host(MonitoringBackend::instance(), $params->get('host'));
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user