MonitoredObject: use MonitoringBackend::instance

refs #7635
This commit is contained in:
Thomas Gelf 2014-11-11 16:43:51 +01:00
parent 6627b5ae6e
commit 3f4110d33d
1 changed files with 2 additions and 2 deletions

View File

@ -480,9 +480,9 @@ abstract class MonitoredObject
public static function fromParams(UrlParams $params)
{
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')) {
return new Host(MonitoringBackend::createBackend(), $params->get('host'));
return new Host(MonitoringBackend::instance(), $params->get('host'));
}
return null;
}