Skip to content

Commit

Permalink
GraphController: Do not show _HOST_ as service
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyfrosch committed Aug 15, 2017
1 parent 9139b95 commit a57697f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/controllers/GraphController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a57697f

Please sign in to comment.