diff --git a/application/controllers/GraphController.php b/application/controllers/GraphController.php index 685b414..312b802 100644 --- a/application/controllers/GraphController.php +++ b/application/controllers/GraphController.php @@ -21,10 +21,14 @@ public function indexAction() $host = $this->getParam('host'); $service = $this->getParam('srv'); + $serviceTitle = ''; + if ($service && $service !== '_HOST_') { + $serviceTitle = sprintf(' | %s: %s', $this->translate('Service'), $service); + } $this->view->title = $title = sprintf('%s: %s%s', $this->translate('Host'), $host, - ($service ? sprintf(' | %s: %s', $this->translate('Service'), $service) : '') + $serviceTitle ); $this->getTabs()->add('graph', array(