monitoring/show: use new grapher hook interface

refs #6932
This commit is contained in:
Thomas Gelf 2014-09-04 16:43:07 +02:00
parent f0969e0b2e
commit b6b16e25e9
1 changed files with 4 additions and 4 deletions

View File

@ -64,8 +64,8 @@ class Monitoring_ShowController extends Controller
. ' on ' . $o->host_name;
$this->getTabs()->activate('service');
$o->populate();
if ($this->grapher && $this->grapher->hasPreviews($o->host_name, $o->service_description)) {
$this->view->grapherHtml = $this->grapher->getPreviewHtml($o->host_name, $o->service_description);
if ($this->grapher && $this->grapher->hasPreviews($o)) {
$this->view->grapherHtml = $this->grapher->getPreviewHtml($o);
}
}
@ -79,8 +79,8 @@ class Monitoring_ShowController extends Controller
$this->getTabs()->activate('host');
$this->view->title = $o->host_name;
$o->populate();
if ($this->grapher && $this->grapher->hasPreviews($o->host_name)) {
$this->view->grapherHtml = $this->grapher->getPreviewHtml($o->host_name);
if ($this->grapher && $this->grapher->hasPreviews($o)) {
$this->view->grapherHtml = $this->grapher->getPreviewHtml($o);
}
}