From b6b16e25e920574e04a1bae2b2d07c2735ca043a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 4 Sep 2014 16:43:07 +0200 Subject: [PATCH] monitoring/show: use new grapher hook interface refs #6932 --- .../monitoring/application/controllers/ShowController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index 6c4d3c310..6b45f3980 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -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); } }